Last active
August 1, 2016 01:24
-
-
Save coltpini/a15fdcdaa5a9fa5a36d295675531fe7c to your computer and use it in GitHub Desktop.
Second stage
This file contains 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
let MyObj = { | |
init(name){ | |
let myObj = {}; | |
myObj.myFunction = (){ MyObj.myFunction(name)}; | |
return myObj; | |
}, | |
myFunction(name){ | |
console.log(`Hi there, ${name}!!`); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment