To be answered
The String object in JavaScript is used to represent and manipulate sequences of characters.
let str = "Hello"; console.log(str.split(""));
let x = “John”; let y = new String(“John”); console.log(x === y);
let str = “5” + 2; console.log(str);
let str = “Hello” — 2; console.log(str);
let str = “Hello, World!”; console.log(str.slice(0, 5))
const str = null; str.toString();
let str = “Hello, World!”; console.log(str.substr(-3))
Subscribe to our newsletter