Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

template string javascript

/*
The template string is indicated with a dollar sign and curly brackets 
(${expression}) inside the backtick symbol.
*/

//Template String
const name = 'Muhammad Shahnewaz';
const result = `${name} is a good boy`;
console.log(result);  //Muhammad Shahnewaz is a good boy
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #template #string #javascript
ADD COMMENT
Topic
Name
9+7 =