Created
October 28, 2020 21:37
-
-
Save arbaz52/56e73c7c83a1054bfa07bcf594ffa15a 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 _v1 = 10 | |
const _v2 = 20 | |
const sum = (strings, v1, v2) => { | |
return strings[0] + v1 + strings[1] + v2 + strings[2] + (v1+v2) | |
} | |
const result = sum`v1: ${_v1} + v2: ${_v2} = ` | |
console.log(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment