Methods

Method Chaining

Example:

let str = 'Pete Hanson';
let names = str.toUpperCase().split(' ').reverse().join(', ');
console.log(names); // => HANSON, PETE

Note the multiple methods chained together where methods are called on the return value of other methods.


Children
  1. Instance_vs_static