Ajay Yadav
Ajay Yadav

@ATechAjay

8 Tweets 4 reads Apr 08, 2022
๐Ÿ’› Day 8๏ธโƒฃ / 3๏ธโƒฃ0๏ธโƒฃ days of basics in JavaScript series
โ†’ What is variable / identifier declaration?
โ†’ What is variable initialization?
โ†’ What is the variable assignment?
#javascript30
Let me explain!๐Ÿงต๐Ÿ‘‡
๐Ÿ“Œ What is variable / identifier declaration?
โ†’ It is the name of the "bucket" which stored "water"
โ—ฉ bucket = memory
โ—ฉ water = data or value
โ†’ Or, variable declaration means naming of the variable.
โ†’ Or, the name of the storage location.
โ†’ Here, "myName" is the name of the variable.
โ†’ Or, the name of the memory location.
โ†’ That means we have declared a variable.
๐Ÿ‘€๐Ÿ‘‡
๐Ÿ“Œ What is variable initialization?
โ†’ Storing some initial "water" into a "bucket"
โ†’ Or, store the initial value into a variable or identifier.
๐Ÿ‘€ Here, "Ajay" is the initial value of the "myName" variable or identifier.
๐Ÿ“Œ What is the variable assignment?
โ†’ That means storing "water" in a "bucket" using a "tool"
โ—ฉ tool - operator
โ†’ Or, storing a value using the assignment operator.
โ—ฉ assignment operator -> ( = )
โ†’ Or, you can set the value to a variable using an assignment operator.
โ†’ Or, allocate a value to a variable.
๐Ÿ‘€ Here,
โ†’ The value "Ajay" is the assigning / setting / allocating into a variable using the assignment operator.
๐Ÿ’š That's all for now, we will meet in the next thread!
But if you like make sure to:
1. Follow me @ATechAjay
2. Retweet the first tweet.
3. Turn on the notification to never miss these amazing tweets.
Thank you so much for staying to the end of this thread.

Loading suggestions...