Hoisting in JavaScript (variables & functions) | Namaste JavaScript Ep. 3

Hoisting in JavaScript (variables & functions) | Namaste JavaScript Ep. 3

Akshay Saini

3 года назад

1,040,012 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Aman Sharma
Aman Sharma - 24.09.2023 12:12

very exited

Ответить
Deepanshu
Deepanshu - 24.09.2023 10:49

No one teaches this

Ответить
Ashish Yadav
Ashish Yadav - 22.09.2023 20:09

awesome video brother you are just too good in explaining

Ответить
Ashish Yadav
Ashish Yadav - 22.09.2023 19:55

I just like your energy level.... thank you for all ur effort

Ответить
Saba Naaz
Saba Naaz - 22.09.2023 16:09

I have seen a lot of you tube videos for this and honestly no one has explained like you❤ ..it was a great great explanation...and now after learning from you I'm actually feeling like a pro😂😅

Ответить
Gurleen Singh
Gurleen Singh - 22.09.2023 07:07

extremely excited man, loving the tutorial so far.

Ответить
Shubham Kumar Gupta
Shubham Kumar Gupta - 20.09.2023 08:24

Sir please explain currying in js

Ответить
Ahmad-Raza
Ahmad-Raza - 19.09.2023 19:58

Best teacher ever ! sending love from pakistan

Ответить
nikhat ansari
nikhat ansari - 18.09.2023 02:58

Which IDE you are using?

Ответить
Arvind Singh
Arvind Singh - 17.09.2023 16:06

🤩🤩

Ответить
ahmad khalil
ahmad khalil - 14.09.2023 22:22

same example with let and const behave like ? plz answer this

Ответить
UTKARSH SRIVASTAVA
UTKARSH SRIVASTAVA - 13.09.2023 23:43

Thanx Akshay Bhai

Ответить
SMILE
SMILE - 13.09.2023 19:52

awesome

Ответить
Hussain
Hussain - 09.09.2023 17:06

great bro

Ответить
AISHWARYA
AISHWARYA - 08.09.2023 15:40

Video was so interesting❤

Ответить
Saurav Phulera
Saurav Phulera - 08.09.2023 12:52

what will happen in case we use let or const?

Ответить
Prince
Prince - 06.09.2023 14:20

Thanks for explaining Hoisting clearly, best video on hoisting

Ответить
NM FLANKER
NM FLANKER - 04.09.2023 23:40

Sir so what will be the definition of hoisting when explained in terms of execution context and call stack?

Ответить
Tanisha Dixit
Tanisha Dixit - 04.09.2023 13:06

Hoisting does not work the same way for function expressions and variables declared with let and const.

Ответить
Ayesha Khan
Ayesha Khan - 03.09.2023 13:59

please can you stop moving your hand that is making this course uncomfortable

Ответить
Abed Sbehat
Abed Sbehat - 02.09.2023 12:53

thx bro

Ответить
Emapten
Emapten - 30.08.2023 20:42

You need subtitles man

Ответить
Ashish 777
Ashish 777 - 28.08.2023 16:08

Thnks for the video, could you please explain how could you debug the code line by line in chrome browser?

Ответить
Yash Singhal
Yash Singhal - 27.08.2023 15:38

stupid language honestly

Ответить
Anjana Maddi
Anjana Maddi - 26.08.2023 16:51

if (false) {
var n = 0;
}
else {
let n = 9;
}
console.log(n)

why doesn't the code throw an error but the one below does

if (false) {
var n = 0;
}
let n = 9;
console.log(n)

Ответить
Dopamineッ
Dopamineッ - 24.08.2023 18:26

THANKSSSSS 😍😍

Ответить
asknehru
asknehru - 24.08.2023 15:49

yes i feel excited

Ответить
kodidela mamta
kodidela mamta - 23.08.2023 17:23

Explanation was good , I liked it '

Ответить
Viraj
Viraj - 23.08.2023 16:17

what shortcut did you use to start the debugger in chrome?

Ответить
Kazim Rizvi
Kazim Rizvi - 23.08.2023 16:14

Bro, You made me fall in love with JavaScript! ❣❣

Ответить
Vahid Seyidov
Vahid Seyidov - 23.08.2023 13:16

Wow man. This series is incredible. Each video has its own beauty of simplicity. Thank you very much!!

Ответить
Xaid khan
Xaid khan - 21.08.2023 09:25

hi Akshay, i'm new to js and i dont know about its synatx or anything about js i dont know how to start the js from vs code to console in chrome pls guide me some steps.. thanks for your support!!

Ответить
Ayushi Aggarwal
Ayushi Aggarwal - 19.08.2023 21:18

Awesome video

Ответить
Tanveer kaur
Tanveer kaur - 19.08.2023 12:58

💯

Ответить
Saleh Abdullahi
Saleh Abdullahi - 18.08.2023 18:33

It feels so good learning what hoisting is, before watching this video when i hear the word hoisting i always think of something more difficult to learn, but with your explanation it becmes more easy.

Ответить
The rising singer
The rising singer - 16.08.2023 18:56

Whenever javascript execution occurs there involves two steps .1) Memory creation 2) execution phase ... memory creation phase and execution phase both ocuurrs in call stack...one thing also ...at creation time the variable which is made up of using var keyword will stored value as undefined at the time of creation phase while for normal function value takes it as a whole ....thats why we can call function anywhere in the global execution contrext .

Note: for arrow function and function expression there is no. Hoisting....we can't hoisted bcz they are also treated as variable ...

Ответить
TechDecryptor
TechDecryptor - 16.08.2023 14:22

🎆🎆🎆🎆🎆🎆🎆🎆

Ответить
harshit pal
harshit pal - 15.08.2023 08:36

gone though many javascript courses, videos, lectures, but unsatisfied with their explainations finally found the best chanel for learning javascript

Ответить
imran shaik
imran shaik - 13.08.2023 14:24

Very Exicing .. Thanks

Ответить
Abhijeet Kanase
Abhijeet Kanase - 12.08.2023 12:52

excellent explanation

Ответить
Coder in Process
Coder in Process - 12.08.2023 06:40

Also, If you declare a JavaScript file with 'use strict'; this will mean that hoisting using var will throw a ReferenceError.

Ответить
Mohammad Tahir Kadgaonkar
Mohammad Tahir Kadgaonkar - 12.08.2023 06:33

let and const variables are hoisted but not initialized? is it correct..

Ответить
DEVI PURNIMA
DEVI PURNIMA - 12.08.2023 00:14

Thank you sir for giving valuable information about js browser, and your explanation is superb 😊

Ответить
Coder in Process
Coder in Process - 11.08.2023 21:29

nothing fancy, KISS - keep it super simple.
All declarations (var, let, const, function, arrow Fn, class) are "hoisted" in JavaScript. This means that hoisting is the mechanism by which we are able to access the variables before their declaration.

The difference between var/function/function* declarations and let/const/class declara­tions is the initialisation.

The former are initialised with undefined or the (generator) function right when the binding is created at the top of the scope. The lexically declared variables however stay uninitialised.

This means that a ReferenceError exception is thrown when you try to access it. It will only get initialised when the let/const/class statement is evaluated, everything before (above) that is called the temporal dead zone.

Ответить
Kishan Mishra
Kishan Mishra - 11.08.2023 14:24

great content bhaiya

Ответить
Ritik Garg
Ritik Garg - 09.08.2023 17:30

GOD

Ответить
K-R
K-R - 08.08.2023 12:22

awww what a big magic

Ответить