Substring, Substr, Slice

20 August 2013

Alright JavaScript, why must you have 3 methods that perform similar if not the same thing?

  • Substring
  • Substr
  • Slice

This guys does a pretty good job at explaining the nuances of each method: http://www.jacklmoore.com/notes/substring-substr-slice-javascript/