Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

` ` in javascript

// ` ` or a string literal allows you to include javascript in a string easily

a = 3

//instead of:
console.log("the value of a is " + a)

//you can use a string literal:
console.log("the value of a is ${a}")



//you can use javascript
a = 3
b= 5
console.log("a is ${a}, b is ${b}, and a plus b is ${a + b}.")
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
3+2 =