yazi — ~/projects

Projects

Chapter 3 on asynchrony and the Event Loop: a syntax-highlighted example mixing setTimeout and a resolved Promise, followed by the exact order in which its four lines print.
12 chapters, EN and ESLearning project · free, no sign-up

JavaScript para Subir de Nivel

A learning site about how JavaScript works, in Spanish and English

A free learning site, in Spanish and English, that goes from using JavaScript to understanding it, in twelve chapters from functions, closures and prototypes through the event loop, modules, error handling, design patterns, state architecture and defensive security to the latest language proposals (ES2025-ES2026). Each chapter ends with review questions, an explain-it-yourself challenge and progressive coding exercises with collapsible hints and explained solutions. It is my learning project: my study notes, organised and shared.

Role
Author and developer
Period
2025 – 2026
  • Astro
  • Starlight
  • i18n
  • GitHub Pages
  • JavaScript

↑ ↓ choose · Enter opens

yazi — JavaScript para Subir de Nivel

Chapter IV // Astro · Starlight · i18n · GitHub Pages · JavaScript

JavaScript para Subir de Nivel

A learning site about how JavaScript works, in Spanish and English

Learning project · free, no sign-up

What it is

A free learning site, in Spanish and English, that goes from using JavaScript to understanding it, in twelve chapters from functions, closures and prototypes through the event loop, modules, error handling, design patterns, state architecture and defensive security to the latest language proposals (ES2025-ES2026). Each chapter ends with review questions, an explain-it-yourself challenge and progressive coding exercises with collapsible hints and explained solutions. It is my learning project: my study notes, organised and shared.

What I built

The site on Astro with the Starlight docs engine: Spanish and English routes with reciprocal hreflang, built-in search, dark and light themes, syntax-highlighted code with copy buttons, and a bibliography page. It is built and deployed to GitHub Pages by a GitHub Actions workflow on every push. The content is Markdown, organised from my own study notes, with "Python Connection" and "Java Connection" boxes that compare each idea with languages I already knew, and short debugging scenarios per chapter.

What I took from it

I learn by writing things down. This learning project turns my study notes into something others can use, and it was made to be shared. Comparing JavaScript with Java and Python while organising the notes showed me where my own understanding was thin, which is what the exercises and the "explain it in your own words" prompts are for.

LAB // FROM THE BOOK

Predict the output, then step through it

Pick an example from the book. What will it print? Make a guess, then step through what the engine does.

Event loop order Chapter 3

console.log('A');setTimeout(() => console.log('B'), 0);Promise.resolve().then(() => console.log('C'));queueMicrotask(() => console.log('D'));console.log('E');

Final output: A E C D B

Closures: var vs let Chapter 1

const a = [], b = [];for (var i = 0; i < 3; i++) a.push(() => i);for (let j = 0; j < 3; j++) b.push(() => j);console.log(a.map((f) => f()).join(' '));console.log(b.map((f) => f()).join(' '));

Final output: 3 3 3 0 1 2

this binding Chapter 1

const user = { name: 'Ana', hi() { return this.name; } };const hi = user.hi;console.log(user.hi());console.log(hi.call({ name: 'Bo' }));console.log(user.hi.bind({ name: 'Cy' })());

Final output: Ana Bo Cy

Prototype chain lookup Chapter 2

const animal = { eats: true };const dog = Object.create(animal);dog.barks = true;console.log(dog.barks);console.log(dog.eats);console.log(dog.flies);console.log(Object.hasOwn(dog, 'eats'));

Final output: true true undefined false

Evidence

  • Go to Map
  • Go to About
  • Go to Projects
  • Go to Experience
  • Go to Stack
  • Go to Arcade
  • Go to Contact
  • Go to Direct view
  • Open chapter I · TCG Store
  • Open chapter II · AmplixMe FS-0009
  • Open chapter III · IKAI Shell
  • Open chapter IV · JavaScript para Subir de Nivel
  • Open chapter V · omarchy-zen
  • Open chapter VI · obsidian-backend-template
  • Open chapter VII · Skorify (community contributions)
  • Open chapter VIII · Fitness_Tracker
  • Open chapter IX · linux-win-setup
  • Open chapter X · weather-app-react
  • Open chapter XI · studio-ghilbli-api
  • Theme: Chipre
  • Theme: Páramo
  • Theme: Tinto
  • Theme: Cafetal
  • Theme: Niebla
  • Theme: Nevado
  • Theme: Cable
  • Theme: Catedral
  • Download CV
  • Copy email
  • Cambiar a Español

↑↓ browse · Enter run · Esc close