Hacker News new | ask | show | jobs
by fruchtose 4907 days ago
I would also add that variables can be re-declared. Many beginners probably think that writing this code would produce an error:

    var i = 0;
    var i = [];
No runtime error will be produced, and the script will continue normal execution.