Web design & ๐Ÿ˜ƒ development
29.3K subscribers
806 photos
35 videos
89 files
831 links
Admin๐Ÿ‘ฎ @sreetamo @Tranjar

Get free resources for webdevelopment , html , CSS , JavaScript , reactjs , wordpress , Php , nodejs ...etc. Buy ads: https://telega.io/c/WebsiteDesignLearningGroup
๐Ÿ‘ฅGroup๐Ÿ‘ฅ @website_DesignLearning_Group
Download Telegram
๐Ÿ“ข announcement*โšกโšกโšกโšกโšก

We are going to start delivering valuable content on Instagram.
Follow ๐Ÿ‘‰ https://www.instagram.com/web_design_development_learn ( on Instagram)

Benefits:๐Ÿ˜‰
You will get video, Tips and tricks... more learning stuff.

Follow us ๐Ÿ‘‰ https://www.instagram.com/web_design_development_learn ( on Instagram )

*Don't forget to share with your friends*
Good bye ๐Ÿค—
Channel name was changed to ยซWeb design ๐Ÿ˜ƒยป
What will be the output? ( JavaScript )

console.log ( NaN !== NaN );
Anonymous Quiz
35%
True
45%
False
20%
Error
Visit the website neumorphism.io to create awesome Neumorphism. It's super easy ๐Ÿ˜ƒ.
๐Ÿ™๐Ÿ™๐Ÿ™
Guys, we have a request to you. If you like our channel, please share with your friends or social media. Here is the link of our channel

https://t.iss.one/WebsiteDesignLearningGroup
function sayHi() { console.log(name);
console.log(age); var name = 'Lydia';
let age = 21; } sayHi();
Anonymous Quiz
34%
Lydia and undefined
18%
Lydia and ReferenceError
18%
ReferenceError and 21
30%
undefined and ReferenceError
Web design & ๐Ÿ˜ƒ development
function sayHi() { console.log(name);
console.log(age); var name = 'Lydia';
let age = 21; } sayHi();
๐Ÿ…ฐNSWER:
Within the function, we first declare the name variable with the var keyword. This means that the variable gets hoisted (memory space is set up during the creation phase) with the default value of undefined, until we actually get to the line where we define the variable. We haven't defined the variable yet on the line where we try to log the name variable, so it still holds the value of undefined.

Variables with the let keyword (and const) are hoisted, but unlike var, don't get initialized. They are not accessible before the line we declare (initialize) them. This is called the "temporal dead zone". When we try to access the variables before they are declared, JavaScript throws a ReferenceError.