Timers_in_Node.js
Node.js

Developer’s Guide on How to Use Timers in Node.js

Timers in Node.js All of the timer functions are globals. You do not need to require() this module in order to use them. clearImmediate(immediateObject)# Added in: v0.9.1 Stops an immediateObject, as created by setImmediate, from triggering. clearInterval(intervalObject)# Added in: v0.0.1 Stops an intervalObject, as created by setInterval, from triggering. clearTimeout(timeoutObject)# Read more…

Interview_Questions_For PHP
Node.js

Interview Questions For Node.js Developers

1. What is “callback hell” and how can it be avoided? Ans: “Callback hell” refers to heavily nested callbacks that have become unweildy or unreadable. An example of heavily nested code is below: query(“SELECT clientId FROM clients WHERE clientName=’picanteverde’;”, function(id){   query(“SELECT * FROM transactions WHERE clientId=” + id, function(transactions){     transactions.each(function(transac){ Read more…

Node js
Node.js

Query String Explained by Node.js Developer

Query String in Node.js querystring.escape(str) :- (str <string>) The querystring.escape() method performs URL percent-encoding on the given str in a manner that is optimized for the specific requirements of URL query strings. The querystring.escape() method is used by querystring.stringify() and is generally not expected to be used directly. It is exported primarily to allow application code Read more…

Node js
Node.js

7 Reasons Why Node.js Is So Popular

To put it simple, Node.js outshines other web applications by replacing web-sockets with revolutionary push technology. You may ask, what is so unique about it? Well, we finally have cutting-edge web applications with two-way, real-time connections where both the server and client can build communication, which allows them to exchange Read more…