A Simple Explanation of JavaScript Variables: const, let, var
Explains the differences between JavaScript variable declarations: const, let, and var, covering declaration, scope, and assignment rules.
Dmitri Pavlutin is a Senior Frontend Developer with 10+ years of experience, specializing in JavaScript, TypeScript, React, and Vue.js. He shares practical tutorials and insights on modern frontend development, UI/UX, and application architecture.
176 articles from this blog
Explains the differences between JavaScript variable declarations: const, let, and var, covering declaration, scope, and assignment rules.
Explains how to use dynamic import() in ES2020 JavaScript to load modules asynchronously, including named and default exports.
A guide explaining how and when to use the React.useMemo() hook to memoize expensive calculations and optimize component performance.
A guide to preventing React warnings by properly cleaning up async side-effects like fetch requests when components unmount.
Explains why JavaScript's Math.max() returns -Infinity when called with no arguments, relating it to mathematical identity and empty sets.
Learn how to implement debouncing and throttling techniques in React components to optimize performance for bursting events like user input.
Explains the key differences between function declarations and function expressions in JavaScript, including syntax, scope, and usage.
A guide to enabling and using ES Modules (import/export) in Node.js, covering .mjs files, package.json configuration, and module imports.
Explains the unexpected behavior of JavaScript's parseInt() with small floats due to exponential notation conversion.
A guide explaining the JavaScript array.reduce() method, including its syntax, use cases like summing numbers, and practical examples.
Learn three methods to merge arrays in JavaScript: using the spread operator, concat(), and push().
A guide to using Jotai, a minimalist state management library for React, covering atoms and derived state.
Explains the key differences between passing by value and by reference in JavaScript, covering primitives and objects.
A tutorial on implementing a queue data structure in JavaScript, covering its operations and time complexity.
A step-by-step algorithm to determine the value of the 'this' keyword in JavaScript functions, covering regular, arrow, and bound functions.
A tutorial explaining the React useRef() hook, covering mutable values and DOM element access in three practical steps.
A collection of 7 JavaScript interview questions focusing on the tricky behavior of the 'this' keyword, designed to test and improve understanding.
Learn how to use the Decorator Pattern in JavaScript to add features like JSON extraction and error handling to the native fetch() API.
A collection of 7 challenging JavaScript closure interview questions with detailed answers to test and improve your understanding.
Explains what methods are in JavaScript, how to define them in objects and classes, and how to invoke them.