Qirolab Qirolab
Posts Questions Snippets
Login Register

What's the difference between using `let` and `var` in Javascript?

JavaScript
Asked by Sumit Talwar · 4 years ago · 3 answers
Nakul Kumar
Nakul Kumar
4 years ago

I guess this image describes better var vs. let vs. const in JavaScript.

var vs. let vs. const in JavaScript.

0
0
More related questions:
  • Is there a convenient way to reference DOM elements in Svelte components?
    1 0
  • What's the difference between a tilde (~) and a caret (^) in the package.json file?
    2 1
  • How would I check if an element is hidden in jQuery?
    3 0
  • What is SSR Server side rendering?
    1 0
  • How to remove a property from a JavaScript object?
    2 0
  • What is the difference between `var functionName = function() {}` vs `function functionName() {}`?
    1 0
  • Home
  • Questions
  • Posts
  • Snippets
  • Tags
Popular Tags
JavaScript
JavaScript
Laravel
Laravel
PHP
PHP
React.js
React.js
Vue.js
Vue.js
HTML
HTML
WordPress
WordPress
Ubuntu
Ubuntu
CSS
CSS
CSS3
CSS3
Qirolab Qirolab

Qirolab is an open community for everyone who codes comes to learn, share their knowledge, collaborate, and build their careers.

Videos

  • Laravel Reverb + Nuxt 3: Real-Time Messaging | Full Chat App Tutorial
  • Nuxt 3 + Laravel Sanctum Authentication: Setup Secure SPA & API Auth (Step-by-Step Guide)
  • useEffect() Hook in React.js: Side Effects, Lifecycle and Prevent Memory Leaks (Tutorial #13)
  • Ctrl+Alt+Cheat: Tailwind Shade Generator, Linux Cheat Sheets & More! 🚀

Learn

  • Questions
  • Posts
  • Snippets
  • Tags

Extra

  • About
  • Privacy Policy
  • Terms of Service
© QiroLab 2025. All rights reserved.
We use cookies to ensure that we give you the best experience on our website.  See our Cookie Policy.