Currying in JSCurrying is a process in which it takes a function which have more than one parameter and converts it in function which takes only one parameter. Currying Let's understand using simple example //normal function const add = (a,b) => a + b; console.log...2 min read·pratikdevle.hashnode.devMay 22, 2022
Shallow copy and Deep copyDeep and Shallow copy is a technique in which we copy arrays or objects so that they don't have the same reference in the memory. Why do we need deep or shallow copy? So we need it in pure functions where arguments should not get mutate. Let's get st...3 min read·pratikdevle.hashnode.devMay 22, 2022
Var, Let & ConstBefore ES6(2015), variables used to declare with var. But now with ES6 we have let and const for variable declaration. var had some drawbacks which caused developers to find new way for variable declarations. var var is globally scoped or functional ...4 min read·pratikdevle.hashnode.devJan 12, 2022
Array Method: How to add and remove elements from Arrayhow we can use push() and unshift() to add elements to an array and pop() and shift() to remove an element from array.2 min read·pratikdevle.hashnode.devAug 2, 2021
Zomato home page clone using HTML & CSSAs a beginner, website clone is a good way to learn and practice the basics. So I tried to clone Zomato website home page using HTML & CSS. Key learnings include: Flexbox Grid Absolute positioning Hover animations Flexbox Flexbox is used to struct...2 min read·pratikdevle.hashnode.devJun 22, 2021