Last active
September 7, 2019 14:01
-
-
Save indreklasn/987c5ba41786705e3506922ec9f81ec7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hasName(name) { | |
debugger | |
if(!name) { | |
console.warn("no name given") | |
return | |
} | |
} | |
function createPerson(name, age) { | |
debugger; | |
hasName(name) | |
const person = { | |
name, | |
age, | |
} | |
debugger; | |
return person; | |
} | |
createPerson("Indrek", 25) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment