Let vs. Var: Understanding the Differences in JavaScript - Coding Interview Prep

  Рет қаралды 206

Jesse Weigel

Jesse Weigel

Күн бұрын

What is the difference between let and var in JavaScript?
In JavaScript, the let keyword is used to declare a block-scoped variable, while the var keyword is used to declare a function-scoped variable. This means that variables declared with let are only accessible within the block of code in which they are defined, while variables declared with var are accessible within the entire function in which they are defined.
Check me out on:
Twitter: / jesserweigel
Instagram: / jesse.weigel
freeCodeCamp: / freecodecamp

Пікірлер
A beginner's guide to const in JavaScript
3:07
Jesse Weigel
Рет қаралды 117
Arrow Functions in JavaScript
8:52
Jesse Weigel
Рет қаралды 111
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 7 МЛН
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 124 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 196 МЛН
Async JavaScript & Callback Functions -- Tutorial for Beginners
24:21
Whiteboard Coding Interviews: 6 Steps to Solve Any Problem
15:18
Fullstack Academy
Рет қаралды 370 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 560 М.
JavaScript Loops Explained
10:53
Dev Doug
Рет қаралды 40
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 207 М.
What is Currying? - Coding Interview Prep
5:35
Jesse Weigel
Рет қаралды 2,9 М.
JavaScript "this" for Beginners
8:18
Jesse Weigel
Рет қаралды 222
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 419 М.
React Native Technical Interview
11:59
Jesse Weigel
Рет қаралды 1,6 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 7 МЛН