why substr is strikethrough inside vs code for javascript

Viewed 27
let thesentence = 'I having a good day'
console.log(thesentence.substr(0,4))

the substr is strikethrough but using substring is fine

0 Answers
Related