@ifvictr/

Tagged Template Literal Pitfall

JavaScript

No description

fork
loading
main.js
1
2
3
4
const equals = str => str === "string";

console.log("not using tagged template literals: " + equals("string"));
console.log("using tagged template literals: " + equals`string`);
Native Browser JavaScript