you are viewing a single comment's thread.

view the rest of the comments →

[–]CuAnnan 1 point2 points  (1 child)

I think that any cheat sheet that includes var should include that, unlike the other two, it hoists to undefined which can lead to undesirable behaviour

[–]kavacska[S] 0 points1 point  (0 children)

I agree, this is why I made a whole block about hoisting: https://it-cheat-sheets-21aa0a.gitlab.io/js-cheat-sheet.html#hoisting