Created
February 1, 2018 19:51
-
-
Save IAMIronmanSam/d138c1425bda1712eb81a68b60d6a867 to your computer and use it in GitHub Desktop.
String Interpulation
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
var stringInt = {}; | |
var name = "Tony Stark"; | |
stringInt.variable(() => { | |
console.log(`Yo, ${name}!`); | |
}); | |
stringInt.method(() => { | |
console.log(`Hey, ${this.iamMethod(name)}!`); | |
}); | |
stringInt.iamMethod((arg) => { | |
return `Awesome super hero, ${arg}`; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment