Difference between let, var & const | Protractor tutorial | JavaScript ES6 | LetCode

preview_player
Показать описание
Understand the difference between let, var & const.
My personal suggestion is always to use let & const based on the data.
This is one of the commonly asked interview questions.
Difference between let, var & const | Protractor tutorial | JavaScript ES6

Source code:

Music credit:

Connect with me in LinkedIn:

Join our Telegram channel.

Join our Facebook group,

Protractor from scratch with JavaScript & TypeScript

JavaScript tutorial from basic to advance level for test automation

TypeScriptJava tutorial from basic to advance level for test automation

Chrome extension development tutorial - XPath Tool

Selenium - Java, not the basic stuff (weird)

Fun time videos, enjoy coding :)
ES6 - Protractor Tutorial - Automation Testing
Channel search
letcode "letcode koushik" LetCode "letcode automation" "letcode javascript" "letcode chrome extension" "letcode protractor" "letcode testing" "letcode selenium" selenium protractor javascript "chrome extension" java "letcode java" "letcode youtube" typescript "letcode typescript" LETCODE
Рекомендации по теме
Комментарии
Автор

I am new to JavaScript and your video made my learning more interesting and easy. Thank you so much :)

aparnasankar
Автор

with your suggestion started learning JS...man you teach awesome man !!! and i saw a few comments about irritating music...i loved it btw

abhishekbhardwaj
Автор

nice video, all the best for your work, the back ground music is bit distracting and disturbing

archanas
Автор

Summary
Scope: var is function-scoped, let is block-scoped.
Hoisting: var is hoisted and initialized with undefined, let is hoisted but not initialized.
Re-declaration: var allows re-declaration, let does not.


Using let is generally preferred over var due to its block-scoping behavior and the reduced risk of bugs related to re-declaration and hoisting issues.

PradipYogi
Автор

hey LetCode, love the tutorial. Please keep up the great work. What hotkey do you use to comment out a block of code? //blocked out code

ameentheqaguy
Автор

i saw rahul shetty, hitesh choutry, bob tubber for java script, i learnt the difference between let and var only from u thanks mams. for protractor no feature??

truth