Thomas
0
Q:

string literals javascript

var animal = "cow";
var str=`The ${animal} jumped over the moon`; // string interpolation
11
// TEMPLATE LITERALS example
console.log(`Hi, I'm ${p.name}! Call me "${p.nn}".`);
3
`string text`

`string text line 1
 string text line 2`

`string text ${expression} string text`

tag`string text ${expression} string text`
4
`string text`

`string text line 1
 string text line 2`

`string text ${expression} string text`

tag `string text ${expression} string text`
2
var totn_string = '';

console.log(totn_string.concat('Tech','On','The','Net'));

//The following will be output to the web browser console log:

TechOnTheNet
1
`string text`

`string text line 1
 string text line 2`

`string text ${expression} string text`

tag`string text ${expression} string text`
0

New to Communities?

Join the community