Answers for "` ` in javascript"

12

js ``

`string text ${expression} string text`
Posted by: Guest on June-28-2020
0

` ` 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}.")
Posted by: Guest on April-01-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language