Chaining javascript functions. What's the order of execution?

javascript

Solution

The `.` operator associates left-to-right.

so you would do the substring first, then the lower case.

Problem

aka if I have a function `var nameNorm= name.substring(1).toLowerCase();` what would the order be? would it turn everything lowercase then extract a substring or would it extract a substring and then turn the substring lowercase?

Original source