What is Node.js? What is its functionality?
Node.js is a runtime environment, basically where code can be executed in a lifecycle, allowing JavaScript to run server-side. Its main features are its event based model and asynchronous request handling.
Is Node.js a framework?
Node.js is not a framework. A framework describes a set of tools for development. For example, Express is a JavaScript framework in that it is a collection of tools to build web applications with. In contrast, Node.js’s primary task is to compile and run code.
What is the difference between let, const and var
Essentially let and const cannot be used before they are initialized, unlike var. Additionally, they are tied down by their block scope, which var is not.
How can you return results after several asynchronous calls?
Promise.all()
What are callbacks and asynchronous programming?
Callbacks are when a function ends in calling another function. Asynchronous programming is when are able to have several processes running in tandem rather than hanging up on each one finishing.
How do try-catch blocks work?
The “try” aspect of the block tries to run code, while “catch” allows for error handling to be manually implemented.
What does “Extends” mean on a class object?
It is an inheritance of another class object, so that it has the properties of the “parent” class.
Last changeda year ago