Created
January 24, 2023 09:17
-
-
Save rsaryev/78372cfce1968145d2a8b00785d8ba11 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
function test(strings, name, age) { | |
const str0 = strings[0]; | |
const str1 = strings[1]; | |
return `${str0}${name}${str1}${age}`; | |
} | |
const name = 'Rustam'; | |
const age = 25; | |
console.log(test`My name is ${name} my age is ${age}`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment