Variables in Javascript
Вставка
- Опубліковано 31 жов 2024
- Hey Everyone, In this video, we will learn about variables in Javascript. We will see all three ways to declare variables in javascript i.e var, let, and const.
Connect With Me: bio.link/piyus...
More Playlists
► Complete ReactJS Tutorial Series - • Complete React Tutoria...
► Complete Firebase & React Tutorial Series - • Firebase with Reactjs ...
Social Links
► Twitter - / piyushgarg_dev
► LinkedIn - / piyushgarg195
Video Titles
Variables in Javascript
How to declare variables in Javascript?
Hashtags
#javascript #fullstackdevelopers #javascriptinhindi #frontenddeveloper #frontend #js #webdevelopment #webdesign #webdev
Thank you for explain... Mujhe Js samjh nahi rha tha bilkul bhi apne ekdm basics se batay to Thoda confidence aya 🙏🙏🙏
You seem to missed
1. Var can be redeclared
2. Shadowing of var (same variable name declared outside and inside function now which will be used if value is changed inside the JavaScript function ?)
3. Many say var has Function scope, some say both global and function
4. The word hoisting
00:02 Variables in JavaScript
02:19 JavaScript variables and data types
04:26 Javascript variables can be loosely typed
06:36 Valid variable name conventions in JavaScript
08:40 Variables in JavaScript have scope and can be accessed inside specific boundaries.
11:01 let and const have local scope, while var has global scope.
13:19 Variables in JavaScript - Scope and Usage
15:48 Variables in JavaScript can be modified and assigned later.
17:45 Variables in JavaScript have different scopes based on declaration
The best video I have learned from...
Sir maine paid bhi padha ha lekin isse behtreen nhi samjhaye
App ka surkiya ❤❤
Lekin sir kya itna enough ha janna js ke bare me
The Comprehensive Guide to JavaScript Variables
[00:02](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript
- Variables in JavaScript are used to store data in memory.
- There are three methods to declare variables in JavaScript - var, let, and const, each with its own advantages and disadvantages.
[02:19](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) JavaScript variables and data types
- JavaScript 'var' keyword creates variables with dynamic typing
- JavaScript is a loosely typed language, allowing dynamic typing and no strict data types
[04:26](ua-cam.com/video/S_WSNrzzpLo/v-deo.html66) Javascript variables can be loosely typed
- Javascript variables do not require data type specification
- Changing the value and data type of variables at run time can create bugs
[06:36](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Valid variable name conventions in JavaScript
- Variable names must start with an alphabet
- Spaces and special characters not allowed, use underscores or camel case
[08:40](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript have scope and can be accessed inside specific boundaries.
- Variables can be created with local scope inside a specific block of code.
- Variables with global scope can be accessed from anywhere in the program.
[11:01](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) let and const have local scope, while var has global scope.
- Variables declared with let and const are always local.
- Variables declared with var have global scope.
[13:19](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript - Scope and Usage
- Variables in JavaScript can be local or global, affecting their accessibility.
- The 'let' keyword for defining variables allows for block scope and value reassignment.
[15:48](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript can be modified and assigned later.
- Variables can be declared without assigning a value initially.
- Constants must be initialized with a value upon declaration and cannot be changed later.
[17:45](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript have different scopes based on declaration
- Variables declared with 'var' have global scope and can be accessed anywhere
- Variables declared with 'let' have block scope and can only be accessed within their own block
Thank you so much for detail explanation! 🙏
Bro make a video on Pagination in React js
Thanks
Thanks sir
well explantion 👍
Wah!
💯❣
Const arr = []
arr.push(1)
Console.log(arr) -> [1]
How it is possible if const cannot be reassigned?
name of the array=reference to the 1st element's address
Done 🔷
awesome
💥🔥
done
Var be like apun koi gali ka gunda nahi globally dab daba hai apun ka 😂