Web
Mobile
DevOps
Testing
Misc
Privacy Policy
Contact
from
SHIFT ASIA
Web
Mobile
DevOps
Testing
Misc
Contact Us
Gavin Huynh
6 posts
front-end
members
Understanding Javascript variables declaration (var, let, const), Hosting mechanism and Temporal dead zone (TDZ)
var, let and const are used in JavaScript to declare variables, but they differ significantly in their scope, hoisting, and whether they can be reassigned or redeclared. 1. var is the original way to
Gavin Huynh
Dec 6, 2025 | 4 min read
front-end
members
Understanding Closure in javascript
A closure in JavaScript is the combination of a function bundled together (enclosed) with references to its surrounding state, known as the lexical environment. In simpler terms: A closure allows an i
Gavin Huynh
Dec 5, 2025 | 2 min read
front-end
members
Memory leaks in React application. How to avoid ?
A memory leak occurs when a program allocates memory for an object or variable but then fails to release it when the object is no longer needed. This causes the application to consume more and more me
Gavin Huynh
Dec 4, 2025 | 4 min read
members
Explain React reconciliation
Reconciliation is a process in React that helps it update the UI efficiently. Whenever something changes in your app, like the data or state, React needs to update the web page to reflect those change
Gavin Huynh
Jun 11, 2025 | 3 min read
members
Understanding Javascript event propagation: Bubbling and Capturing
Event bubbling and capturing, both are propagation mechanisms in DOM(Document Object Model). Both these mechanisms are opposite of each other. Understanding DOM EventsDOM event is a signal that someth
Gavin Huynh
Jun 10, 2025 | 3 min read
members
Optimizing rendering performance in React
Re-render happens when React needs to update the app with some new data. Usually, this happens as a result of a user interacting with the app or some external data coming through via an asynchronous r
Gavin Huynh
Jun 9, 2025 | 2 min read
Load more posts