Hey everyone!
I’m taking on the #100DayCodeChallenge!
Over the next 100 days, I’ll be sharing my journey, knowledge, and experiences.
Stay tuned for regular updates!
Hey everyone!
I’m taking on the #100DayCodeChallenge!
Over the next 100 days, I’ll be sharing my journey, knowledge, and experiences.
Stay tuned for regular updates!
Day 1:
Today I learned about “Promises” in JS.
Definitions :
Initializing a Promise :
Day 2:
Arrow Functions:
When to use:
this
is lexically scoped, especially in callbacks: Like a robot that remembers its owner even if told to do something later.arguments
or this
context: Like a robot doing a simple task without needing extra tools.When not to use:
this
needs to be dynamic within the function: Like a robot that can change its owner based on who is using it.arguments
object: Like a robot that needs to know information outside the task to complete the assigned task.Summary
this
).