Тёмный

Variables and Scope | Javascript | Web Technology | Lec-27 | Bhanu Priya 

Education 4u
Подписаться 887 тыс.
Просмотров 61 тыс.
50% 1

javascript variables scope

Опубликовано:

 

17 сен 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@Shivamashish5236
@Shivamashish5236 2 года назад
Good one ma'am that explains variables
@suraj.p3919
@suraj.p3919 4 года назад
In the body tag you have written to print outside function global count A. And in the output there are two sentences printed. If it is correct pls explain how the output comes like that.
@gatelecturesbysujatha4725
@gatelecturesbysujatha4725 4 года назад
Yes, she has written wrong it should also contains "+count+"
@jaswanthsabbavarapu8303
@jaswanthsabbavarapu8303 11 месяцев назад
could you please explain that?
@prajyotpatil2153
@prajyotpatil2153 4 года назад
Thanks 🤙
@adarshsingh.352
@adarshsingh.352 Месяц назад
🔥
@Ishq-ln5ur
@Ishq-ln5ur 2 месяца назад
Mam could you explain this while writing and execution the program❤️
@adityagupta1064
@adityagupta1064 2 месяца назад
mam 3:09 pr count se pehle var kyu nhi lagaya aapne? reply fast. tomorrow exam.
@dipeshupadhyay9561
@dipeshupadhyay9561 2 месяца назад
Yes mam same doubt. Please tell
@prashantvishwakarma4821
@prashantvishwakarma4821 2 года назад
In local variable why outside count is 0
@nitinmaher9518
@nitinmaher9518 7 месяцев назад
Variable s also have scope
@suraj.p3919
@suraj.p3919 4 года назад
You said that variable is expressed with "var" keyword, then why "var" is not used infront of count?. Pls explain
@gatelecturesbysujatha4725
@gatelecturesbysujatha4725 4 года назад
Variable can be in any name like name , age etc... here count is a variable name.
@suraj.p3919
@suraj.p3919 4 года назад
@@gatelecturesbysujatha4725 so keyword "var" is not needed infront of count???
@rutamvarm
@rutamvarm 4 года назад
Variables declared without a declaration keyword ( such as 'var', 'let' or 'const') are always global even if declared within a function. There is no wrong in declaring the count variable without mentioning 'var'. It is another way of declaring a global variable.
@gatelecturesbysujatha4725
@gatelecturesbysujatha4725 4 года назад
@@suraj.p3919 yes
@suraj.p3919
@suraj.p3919 4 года назад
The example which you have given about global variable is not explained. You are not explaining the output, like first 2 sentence of the program output how it is getting printed , how the value is printed. All that. Its confusing. Pls explain it if you can.
@dinakarparulkaranam6229
@dinakarparulkaranam6229 4 года назад
what are you telling can you understand,don't give wrong info plss.
@mrbe0001
@mrbe0001 4 года назад
Information is good.. but y u r reading like a sentence explain with ppt presentation that's good better than dis pen and paper explanation
@gabrielsdesk
@gabrielsdesk 2 года назад
You cant explain.. dislike