▲ JavaScript `substring()` vs `slice()` - Mastering JS at masteringjs.io▼2 up and 0 down, posted by vkarpov15 1186 days ago 3 comments
MaxArt 1181 days ago. link parent 2 points ▲ ▼There's a misunderstanding: I mainly use `slice` too. I only use `substr` if I have the length of the substring I need. That's its added value. What I stopped using altogether is `substring`.