in , , ,

whatIsTheSubstrReplacement

whatIsTheSubstrReplacement | javascript-memes, java-memes, string-memes, console-memes | ProgrammerHumor.io
javascript-memes, java-memes, string-memes, console-memes | ProgrammerHumor.io

Content

"".substr() is deprecated JavaScript Demo: String.substring() const str ‘Aqua’ 2 console. loq(str.substr (2,2)); 3 console. log(str.substring(2, 2)); 4 console. loq(str.slice(2, 2)); Dun s Reset we now have "’".substring() and "".slice() Log(str. substring (2, 2 Log(str.slice(2, 2));