I am having some issues in my production code and I want to be able to send a flag to enable/disable JS logging, so I want to write my own logging function.
I want to use something like function log(){...}
. When I looked up reserved words in JS I didn't see
log listed, but I do see it listed in the w3schools docs as a math function.
Is it okay to use log() as a function name in production code for IE 7+, Chrome, and FF?