I would prefer if we declared variables at the top of the scope where their declaration will be hoisted to anyway. This way, no-one can mistake that ``i`` and ``len`` are declared in the scope of the function.