3 ms·
Uh no don't reassign the loop variable in the inner scope. Use: const j = (length - 1) - i; in that case. Much safer.
by unwind 4y ago
Uh no don't reassign the loop variable in the inner scope. Use:
const j = (length - 1) - i;
in that case. Much safer.