Posts in 2022
-
Arrow Function
Wednesday, December 07, 2022 in NodeJS
Categories:
less than a minute
Arrow functions are really helpful when you want create reusable one liner function. e.g. let us assume you want to add two numbers, then you would normally create a function as follows function add(a, b) { return a + b } instead of this we can …
Posts in 2021
-
Difference Between Promise and Observable Subscription
Saturday, July 17, 2021 in NodeJS
Categories:
2 minute read
Anyone who looks Promise and Observable at first it might looks like they both solve the same purpose i.e.they both used for asynchronous functionality, and immediately question arises what is the difference? which one is best? Which one I should …
Posts in 2019
-
NodeJS - Unit Test DynamoDB
Friday, May 10, 2019 in NodeJS
Categories:
2 minute read
Introduction This page explains how to mock dynamodb client using Sinon and Proxyqurie Required dependencies Install the following dependencies npm install --save-dev sinon npm install --save-dev proxyquire Sample Project Setup a sample project # …