Javascript is disabled by default on my iPhone X, iOS 11.3. I cannot positively state whether it was enabled or not in previous iOS versions. I would think it would have been disabled, but I cannot state that with certainty. It seems reasonable to me to have it disabled by default, and, if you need it enabled, you may do so.