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?
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?
The . operator associates left-to-right.
so you would do the substring first, then the lower case.
name(), in case we want to receive same result with any order?name here is not a function.