What is a Promise?
An object that allows a function to handle asynchronous operations (like fetching data)
What is DOM manipulation?
When JavaScript is used to add, remove, and modify HTML elements.
What are the 5 primitive data types in JavaScript?
A primitive is a data type that isn’t composed of other data types. They are:
* Boolean
* Undefined
* Null
* Number
* String
How is the this keyword used?
The this keyword refers to the object that the function is a property of.
What is hoisting?
The default behaviour of JavaScript, where all the variable and function declarations are moved to the top of the file during runtime.
What is a higher order function?
Functions that either (1) take other as arguments or (2) returns other functions.
What is a closure?
It’s an ability of a function to remember the variables and functions that are declared in its outer scope.
How can OOP be implemented in JavaScript?
OOP is a programming style where functions and variables are organised in objects. It can be implemented in JavaScript through regular objects or classes.
What is the difference between var, let and const keywords?
What does pass by reference or pass by value mean?
What is prototypal inheritance?
All JavaScript objects have a __proto__ property (with the exception of objects created with Object.create(null)). This __proto__ is a reference to another object, which is called the object’s “prototype”.
When a property is accessed on an object and if the property is not found on that object, it will go down the “prototypal chain” until it finds the original prototype.