> Pretty sure it will not. Nothing is lazy in JS by default:
It really depends on the logic written. You can solve the same thing in many different ways, the way chosen by the author doesn't seem to be a lazy one.
Not the language's fault. It's simply doing what is asked of it.