Answers for "javascript $ symbol function"

0

javascript $ symbol function

//Javascripts $ function is used to call functions/variables inside a string without using concatenations
let variableExample = 10;

let result = `${variableExample} text`;

console.log(result);
//output = 10 text
//this only works with backtick (` `) and not with single or double quotes
Posted by: Guest on October-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language