Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript template literals

//Regular string
var rgb = "rgb(" + r + "," + g + "," + b + ")";
//Template literal
var rgb = `rgb(${r}, ${g}, ${b})`;
 
PREVIOUS NEXT
Tagged: #javascript #template #literals
ADD COMMENT
Topic
Name
3+9 =