DEV Community

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

Posted on

2 1

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)

Collapse
 
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.

Collapse
 
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

Collapse
 
dominikilnicki profile image
Dominik Ilnicki

oh thanks, I fixed that up

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay