Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript backticks

// Backticks helps to incude variables in a string (interpolation)
const name = 'Grepper'
                 //↓variables		   //↓expressions or functions
console.log(`Hey ${name}! Your name has ${name.length} characters`)
 
PREVIOUS NEXT
Tagged: #javascript #backticks
ADD COMMENT
Topic
Name
5+1 =