const str = ['one','-','two'].join``;
console.log(str);
// outputs "one-two"
With tagged templates you can pass a template string to a function without parens.
See more stuff like this over @ Snippet Zone
const str = ['one','-','two'].join``;
console.log(str);
// outputs "one-two"
With tagged templates you can pass a template string to a function without parens.
See more stuff like this over @ Snippet Zone
For further actions, you may consider blocking this person and/or reporting abuse
Rahul Raveendran -
Marcus Kohlberg -
Prashant Sharma -
Muhammad Awais -
Top comments (0)