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...May 22, 2022 · 2 min readpratikdevle.hashnode.dev
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...May 22, 2022 · 3 min readpratikdevle.hashnode.dev
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 ...Jan 12, 2022 · 4 min readpratikdevle.hashnode.dev
Array Method: How to add and remove elements from ArrayArrays can be defined with a length of any number of elements, and elements can be added or removed over time; in other words, arrays are mutable. Add Items to an Array with push() and unshift() Both methods take one or more elements as parameters an...Aug 2, 2021 · 2 min readpratikdevle.hashnode.dev
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...Jun 22, 2021 · 2 min readpratikdevle.hashnode.dev