Call by value and reference in javascript || Javascript Foundation Videos In telugu || Video 21
Subscribe to our Channel https://goo.gl/G3cB5Q
• Javascript Foundation Training Videos In t...
#JavascriptFoundationVideosIntelugu#
Call by Value: Suppose there is a variable named “a”. Now, we store a primitive value(boolean, integer, float, etc) in the variable “a”.
Let us store an integer value in “a”, Let a=5. Now the variable “a” stores 5 and has an address location where that primitive value sits in memory.
Now, suppose we copy the value of “a” in “b” by assignment (a=b). Now, “b” points to a new location in memory, containing the same data as variable “a”.
Thus, a=b=5 but both points to separate locations in memory.
This approach is called call by value where 2 variables become the same by copying the value but in 2 separate spots in the memory.
📝 React Register Now!:
https://www.vlrt.in/rr
👥 React Join WA Community:
https://www.vlrt.in/rw
💡 React Course Content:
https://www.vlrt.in/rc
▶️ React Demo Videos:
https://www.vlrt.in/rv
👉 Please Join Our Vlrtraining WhatsApp Group
https://www.vlrtraining.com/VlrTraini...
👉 Please join our Telegram Group
https://t.me/sqlvlrtraining
👉 Chat with us in WhatsApp
https://wa.me/919985269518
https://wa.me/919059868766
Like us on Facebook page VLR Training
/ vlrtraininghyderabad
Follow us on Twitter
/ vlrtrainingkphb
linked in
/ vlr-training