If you are a beginner, Promises in JavaScript can be inherently difficult to understand.
What is a Promise anyway?
In this thread, I will explain the important concepts of JavaScript Promises in layman terms 🧵
Imagine that you are interviewing job seekers for a job position.
A young man comes in for an interview but guess what? He forgot his resume (lol)
Nothing daunted, though.
He calls his roommate over the phone and asks him to help find his resume. He also pleads with his roommate to PROMISE to text him asap with the FINAL STATUS of his finding:
As a beginner, you have probably heard of the DOM over a million time.
But do you really understand what it is?
Here’s a simple (and fun?) way of understanding what the DOM in JavaScript actually is 🧵
Imagine this:
A group of aliens invade the human race. The aliens bring an inscription written in alien language to warn the humans about an apocalypse (haha), and to show the humans how to prevent it.
But humans can’t understand what that inscription says. The aliens have to translate that inscription into a form that humans can understand.
They also have to make it a model for translation, just in case they come back in the future (i hope not).