TDD Test driven development TDD = Test first development + Refactor Why TDD TDD will force developer to write a clean code. Your code will be tested before it went to deployment. So the chances of getting errors in production is less. It will actual...
Hello all 👋🏻, This article is all about closure in javascript. Closure is not a easy topic. It will be confusing topic for beginners. In this article i will try to explain it easily. What is a closure According to MDN A closure is the combination ...
Hello All, Hope all are doing good in this pandemic time. This article is about hashing passwords before writing in storage. Now a days every one are adding authentication for their apps and i heard some of the apps are storing password with out hash...
This article is about how to use es6+ in nodejs project Initialising project with npm npm init -y Installing babel plugins for es6+ features npm i -D @babel/cli @babel/core @babel/plugin-proposal-class-properties @babel/plugin-transform-runtime @ba...
Do you know when we evaluate this 0 * -1 in javascript we will get -0 because javascript can hold positive 0 (+0) and negative 0 (-0). Why +0 and -0 ? Because the sign (+ and -) will represent the axis or direction.
What is currying ? Currying is an advanced technique of working with functions. It is a transformation of functions that translates a function from callable as f(x, y, x) into callable as f(x)(y)(z). Example : //Normal function function add(x, y){ ...