DEV Community

Cover image for JS visual notes: var vs let
Dominik Ilnicki
Dominik Ilnicki

Posted on

JS visual notes: var vs let

Hey, I decided to start a mini-series with visual notes related to the JS, react, vue, and other frontend topics. Maybe that will help somebody remember some issues better. Today var vs let, what's a difference between them?

Stay tuned for more 👀

var vs let note

Top comments (3)

macsikora profile image
Pragmatic Maciej

Just small hint. Too much text in these visual notes. If they should be better then raw text add there more visual staff like diagrams and pictures.

smlka profile image
Andrey Smolko • Edited

Hey, I think you have made a typo in 'let' section coz in the 'let' code snippet you are still using var keyword

dominikilnicki profile image
Dominik Ilnicki

oh thanks, I fixed that up