Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

The slice JavaScript string method

// You use this method to cut out a substring from an entire string.
// We will use this method to cut out the remaining part of a word (excluding the first letter):

const word = "freecodecamp"

const remainingLetters = word.substring(1)
// reecodecamp
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #The #slice #JavaScript #string #method
ADD COMMENT
Topic
Name
1+7 =