Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Method Chaining

String methods can be combined in a process called method chaining. 
Given word = 'JavaScript';, word.toUpperCase() returns JAVASCRIPT. 
What would word.slice(4).toUpperCase() return?
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #Method #Chaining
ADD COMMENT
Topic
Name
9+5 =