Created
October 28, 2020 21:25
-
-
Save arbaz52/874a23a717276ee023b0ee283be778a9 to your computer and use it in GitHub Desktop.
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
const _name = "arbaz" | |
const _age = 21 | |
const fn = (strings, ...vars) => { | |
console.log("strings: ", strings) | |
console.log("vars: ", vars) | |
} | |
fn`my name is ${_name} and I'm ${_age} years old` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment