Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js template literals

let fruits = {
	banana: 1,
  	orange: 5
};

let sentence = `We have ${banana} Banana/s and ${orange} orange/s!`;

console.log(sentence); // We have 1 Banana/s and 5 orange/s!
Source by codehandbook.org #
 
PREVIOUS NEXT
Tagged: #js #template #literals
ADD COMMENT
Topic
Name
6+3 =