ReactJS przecięta część sznurka
var str = "Hello world!";
var res = str.substring(1, 4);
// res value is "ell"
Tintinero1
var str = "Hello world!";
var res = str.substring(1, 4);
// res value is "ell"
let word = "Subscribe to Crosby Roads on YouTube!"
// From the right show 24 characters
let subResult = word.substr(word.length - 24)
console.log(subResult)
// Crosby Roads on YouTube!
let word = "Subscribe to Crosby Roads on YouTube!"
// From the right show 24 characters
let subResult = word.substr(-24)
console.log(subResult)
// Crosby Roads on YouTube!