Skip to main content
Mohammad Shehadeh — home (MSH monogram, letter M filled with the Palestinian flag)

JavaScript

Event loop, scope, and type coercion—explained with clear examples and best practices.

7 articles

June 2, 20263 min
Javascript IconJavaScript
Declarative vs Imperative Programming
Understand the difference between declarative and imperative programming in JavaScript, with practical examples and when to reach for each style.
June 2, 20263 min
Javascript IconJavaScript
Event Delegation in JavaScript
Learn how event delegation works in JavaScript, why it relies on event bubbling, and how a single listener can handle hundreds of elements efficiently.
March 11, 20264 min
Javascript IconJavaScript
Deep Call Chains vs Orchestrator Pattern
Learn why deep call chains create tightly coupled code and how the orchestrator pattern makes your functions independent, testable, and easier to trace.
October 1, 20254 min
Javascript IconJavaScript
JavaScript Weird Parts: Understanding the Quirks
Explore the strange and unexpected behaviors in JavaScript. Learn about equality quirks, type coercion magic, object coercion, and the Abstract Equality Comparison Algorithm with practical examples.
June 20, 20242 min
Javascript IconJavaScript
Scope in JavaScript
Master JavaScript scope concepts including global, function, and block scope. Learn about variable accessibility, hoisting, and the differences between var, let, and const with practical examples.
February 20, 20243 min
Javascript IconJavaScript
Understanding Event Loop in JavaScript
Complete guide to JavaScript event loop - how single-threaded JavaScript handles asynchronous operations. Learn about call stack, callback queue, web APIs, and microtasks vs macrotasks with practical examples.
February 8, 20242 min
Javascript IconJavaScript
Type Coercion in JavaScript
Understanding type coercion in JavaScript - the automatic conversion of values from one data type to another. Learn implicit vs explicit coercion with practical examples and best practices.
GET IN TOUCH

Let's work together

I build fast, accessible, and delightful digital experiences for the web. Whether you have a project in mind or just want to connect, I'd love to hear from you.

Get in touch

or reach out directly at hello@mohammadshehadeh.com