Python Method Chaining Javascript W3schools