- 1

Can anyone khow tell me abou Var?

Var

25th Apr 2020, 8:34 AM
ABHIJIT BISWAS
ABHIJIT BISWAS - avatar
5 Answers
+ 2
You have finished the whole Javascript tutorial, furthermore Jquery and all sorts of others. So... shouldn't you know how var works? Maybe it's time for a review, slowly and in a concentrated fashion.
25th Apr 2020, 9:21 AM
HonFu
HonFu - avatar
+ 10
While 'const' and 'let' variables are scoped by code blocks, functions or modules, 'var' variables are scoped only by functions or modules. Check out this article about javascript scope variable — https://dmitripavlutin.com/javascript-scope/
25th Apr 2020, 10:09 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 1
ABHIJIT BISWAS jquery is not a language on its own. It is javascript so var can work just as it would in plain js
25th Apr 2020, 9:53 AM
Ore
Ore - avatar
0
Okey thanks ... but can it work jQuery also ??
25th Apr 2020, 9:07 AM
ABHIJIT BISWAS
ABHIJIT BISWAS - avatar
0
No sir acctually it's a query can have it work??
25th Apr 2020, 9:23 AM
ABHIJIT BISWAS
ABHIJIT BISWAS - avatar