How to Debounce and Throttle Callbacks in ReactUpdated January 28, 2023reactcallbackStart discussionHow to debounce and throttle callbacks in React using useCallback() and useMemo() hooks. Continue reading ➞
Don't Confuse Function Expressions and Function Declarations in JavaScriptPosted May 4, 2021javascriptfunctionStart discussionWhat are the differences between function declarations and function expressions in JavaScript. Continue reading ➞
How to Use ECMAScript Modules in Node.jsPosted April 27, 2021javascriptmodulenodejsStart discussionHow to enable and use ECMAScript 2015 modules in Node.js. Continue reading ➞
Solving a Mystery Behavior of parseInt() in JavaScriptPosted April 20, 2021javascriptnumberStart discussionSolving a mystery of how parseInt() parses small float numbers in JavaScript. Continue reading ➞
How to Use Array Reduce Method in JavaScriptPosted April 13, 2021javascriptarrayreduceStart discussionWhat is a reduce operation and how to use array.reduce() method to perform the reduce operation on arrays. Continue reading ➞
3 Ways to Merge Arrays in JavaScriptUpdated January 28, 2023javascriptarrayStart discussionHow to merge arrays in JavaScript using spread operator, array.concat(), and array.push(). Continue reading ➞
A Guide to Jotai: the Minimalist React State Management LibraryPosted March 30, 2021reactstateopen sourceStart discussionHow to manage global state in React using the minimalist but flexible Jotai library. Continue reading ➞
The Difference Between Values and References in JavaScriptPosted March 23, 2021javascriptobjectStart discussionWhat is the difference between passing by value and passing by reference in JavaScript. Continue reading ➞
How to Implement a Queue in JavaScriptUpdated February 27, 2023javascriptcomputer sciencedata structurequeueStart discussionThe guide on how to implement a queue data structure in JavaScript. Continue reading ➞
A Helpful Algorithm to Determine "this" value in JavaScriptUpdated April 19, 2021javascriptthisfunctionStart discussionStruggle finding "this" value? I have created an universal algorithm to help you find "this" in any situation. Continue reading ➞