What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-20 01:13:20
javascript substring vs substr
let demo = 'This is a normal sentence'; // substr // The substr method takes two parameters // param 1 - the starting index to copy from a string // param 2 - the number of characters that must be copied from the starting index let newDemo = demo.subst... Add solution