• Home
  • Skills
  • Projects
  • Blog
  • Contact
Resume
Naser Rasouli

Author

Naser Rasouli

Front-End developer - sharing lessons learned, notes, and write-ups from real projects.

GitHubLinkedIn

Last posts

BEM Methodology in CSS: predictable naming for clean styles
2026-02-18•1 min read

BEM Methodology in CSS: predictable naming for clean styles

A practical guide to BEM to avoid style conflicts, structure class names, and keep CSS maintainable.

Why console.log After setState Shows the Old Value
2026-02-04•1 min read

Why console.log After setState Shows the Old Value

React batches state updates, so logging right after setState prints the previous value. Here’s why and the right ways to read the fresh state.

Cleanup Functions in useEffect: Stop Leaks Before They Start
2026-02-04•1 min read

Cleanup Functions in useEffect: Stop Leaks Before They Start

A practical guide to writing cleanup in useEffect so you avoid memory leaks, duplicate listeners, and setState on unmounted components.

Why JavaScript Matters More Than Any Framework

Why JavaScript Matters More Than Any Framework

2026-01-10
javascriptfundamentalsfrontendframeworks

Frameworks are tools, not foundations

Frameworks exist to tame complexity, but they stand on JavaScript’s shoulders. If you don’t know the language core:

  • You don’t understand how the framework actually works
  • Odd bugs leave you stuck and dependent on docs
  • API or version changes feel like a wall

Those who know JavaScript deeply understand a framework, not just use it.


JavaScript is a problem-solving language

JavaScript isn’t just for manipulating the DOM; it teaches you how to:

  • Think about data and state
  • Handle unexpected situations
  • Build stable patterns (modules, composition, async patterns)

These skills don’t expire when frameworks change.


JavaScript outlives any framework

Frameworks come and go; APIs change or get abandoned. JavaScript has powered the web for over two decades and keeps getting stronger. Investing in it means investing in a durable skill.


Freedom to choose any framework

When you grasp the language:

  • You can move between React, Vue, Svelte, or anything new
  • You learn new frameworks faster
  • You’re not hostage to one tool when the market shifts

Real debugging is impossible without JavaScript

When things break, docs won’t always save you. You need to know:

  • What scope is and how closures behave
  • How async code is scheduled and how the event loop works
  • How to avoid common Promise pitfalls and handle errors

Without this, debugging is guesswork.


JavaScript bridges frontend and backend

It’s the only language that runs in the browser and on the server (Node.js). Understanding it helps you:

  • Design and consume APIs with clarity
  • Model application logic correctly and align with backend
  • See the system end to end

Recommended learning order

  1. Learn JavaScript deeply (scope, closures, async/await, data structures).
  2. Practice DOM work, events, and simple state management.
  3. Move to a framework—now it’s a tool, not a wall.
  4. Learn shared patterns: modularizing code, composition, basic testing.

Takeaway

Frameworks matter, but they’re not the foundation. JavaScript is the pillar of frontend thinking. If you learn the language core well:

  • You grow faster and decide more independently
  • Debugging and optimization become logical
  • Framework or market shifts won’t stop you

Frameworks come and go; JavaScript stays.