#02. What is OOP?
OOP means Object-Oriented Program. It’s a convention of writing code. It makes the code more organized. It helps the developer by allowing for code to be easily reused by other parts of the program or even by other people.
#03. What is encapsulation?
Encapsulation means information hiding. It’s a process of binding the data with the functions which act upon the data. Encapsulation allows us to control and validate the data.
#04. Null vs Undefined
#05. ‘==’ vs ‘===’
- It’s used for comparing two variables, but it ignores the data type of the variable.
- Return true if the two operands are equal.
- It’s used for comparing two variables, but this operator also checks data type and compares two values.
- It returns true only if both values and data types are the same for the two variables.
#06. What is Closure?
There are three scope chains in closure:
- access to its own scope.
- access to the outer function’s variables.
- access to the global variables.
#07. What is ‘this’ keyword?
- In a method, ‘this’ refers to the owner object.
- In a function, ‘this’ refers to the global object.
- In an event, ‘this’ refers to the element that received the event.
#08. What is DOM?
#09. What is API?
API means Application Programming Interface. It’s a set of functions that allows applications to access data and interact with external software components, operating systems, or microservices. Basically, an API specifies how software components should interact. API specifies how software components should interact.
#10. What is CURD?
CRUD is a programming concept denoting four basic actions (create, read, update, delete) that can be performed on a data source.
- POST: Create action. Adds new data to the server. Using this type of request, you can, for example, add a new ticket to your inventory.
- GET: Read action. Retrieves information (like a list of items). This is the most common type of request. Using it, we can get the data we are interested in from those that the API is ready to share.
- PUT: Update action. Changes existing information. For example, using this type of request, it would be possible to change the color or value of an existing product.
- DELETE: Delete action. Deletes existing information.