โจ Learning Update (Past 2 Days): Deep Dive into JavaScript Concepts
Over the last two days, I focused on strengthening my JavaScript fundamentals and exploring some advanced concepts. Here's what I covered:
๐น Constructor Functions & Prototypes
Built custom constructor functions without using ES6 classes
Added methods inside the constructor and later moved them to the prototype
Created multiple objects and compared their method references
Understood how prototypes help in memory optimization and shared behavior
๐น Understanding this in Different Contexts
Global scope โ window
Regular functions โ window
ES5 vs ES6 (arrow) functions inside objects
How nested functions behave with this
Why arrow functions donโt have their own this
๐น call(), apply(), bind()
How call sets the value of this and runs the function immediately
How apply does the same but takes arguments as an array
How bind returns a new function with a permanent this
These concepts helped me understand how JavaScript handles object creation, method sharing, execution context, and function invocation patterns. Feeling much more confident with OOP and advanced function behavior in JS now! ๐
#JavaScript #LearningJourney #WebDevelopment #OOPS #Prototypes #CodingEveryday