The JavaScript Math object allows you to perform mathematical tasks on numbers. Below are some of the basic math functions:
Tag: functions
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:
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
Serverless Battle: Azure Functions compared to AWS lambda
Since the last 4 years or so the cloud computing has been a game changer in a number ways and the emergence of serverless computing/architectures has just solved many of the core computing problems. Serverless is about abstracting users away from servers, infrastructure, and having to deal with low-level configuration or the core operating system. … Continue reading Serverless Battle: Azure Functions compared to AWS lambda
Node.js: Callbacks v/s Events
Callback In the callback model you make a request and provide a function to be called when the request is completed. Which means one request and one reply. Also in the callback approach you won't receive any result until you receive all the results. Like shown in the example below, until it iterates over all … Continue reading Node.js: Callbacks v/s Events