node.js series: 3 ways to write JavaScript Functions!

There are 3 basic ways in which you can write your JavaScript Functions. Simple Way - A function with a name Declaring function as an object Create functions dynamically by Calling the constructor Summing it up: Output after execution:

Advertisements

Node.js Series: 10 things you should know about node.js!

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code server-side. Node.js was originally written by Ryan Dahl in 2009. 10 important points about nodejs.js are as follows: 1. Open source Projects can be useful for programmers. You can learn by reading the source code and build something on top of the existing … Continue reading Node.js Series: 10 things you should know about node.js!

JavaScript: Converting a Callback to Promises

Callbacks For JavaScript to know when an asynchronous operation has returned a response (the response could be an correct result or error response), it points to a function that will be executed once that result is ready. This function is what we call a “callback function”. In a simple way, a callback is a function that … Continue reading JavaScript: Converting a Callback to Promises