Tommy D. answered 05/13/19
Computer Science Student
Substring and substr both have two arguments. Their first argument is the starting position of the characters you want. The second argument of substring is the end position but for substr the second argument is how many character to return. Also you can use negative value starting position for substr.
Ex: "test".substring(1,2); // will return "e"
"test".substr(1,2); // will return "es"