javascript code behavior changes when I attempt to debug it

Printable View