Strings in JS / Postman

 avatar
unknown
javascript
2 years ago
312 B
3
Indexable
let firstName = "Jamie";
let lastName = "Doe";
let age = 26;

let fullName = `${firstName} ${lastName}`; // ekwiwalent let fullName = firstName + ' ' + lastName;
console.log(fullName, age);

let introduction = `My name is ${firstName} and I am ${age} years old.`;
console.log(introduction);

// comment
Editor is loading...