- How to prevent user from going back to previous page in javascript?
- What are Node.js buffers?
- How does Node.js work internally?
- What are different phases in event loop?
How to prevent user from going back to previous page in javascript?
function preventBack() window. history. forward(); setTimeout("preventBack()", 0); window.
What are Node.js buffers?
Node provides Buffer class which provides instances to store raw data similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. Buffer class is a global class that can be accessed in an application without importing the buffer module.
How does Node.js work internally?
Node JS Web Server internally maintains a Limited Thread pool to provide services to the Client Requests. Node JS Web Server receives those requests and places them into a Queue. It is known as “Event Queue”. Node JS Web Server internally has a Component, known as “Event Loop”.
What are different phases in event loop?
Timers, I/O callbacks, preparation / idle phase, I/O polling, setImmediate() callbacks execution, and close events callbacks are the six primary phases of the Event Loop.