📜  方法链 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:39.233000             🧑  作者: Mango

代码示例1
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?