Skip to content

Instantly share code, notes, and snippets.

@IAMIronmanSam
Created February 1, 2018 19:51
Show Gist options
  • Save IAMIronmanSam/d138c1425bda1712eb81a68b60d6a867 to your computer and use it in GitHub Desktop.
Save IAMIronmanSam/d138c1425bda1712eb81a68b60d6a867 to your computer and use it in GitHub Desktop.
String Interpulation
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