Skip to main content
100%

Eloquent JS: Chapter 6

✓ Published1🌍 Public
Eemberix@gmail.com
Last edited Apr 9, 2021
Created on Apr 6, 2021

This example demonstrates three JavaScript exercises from Eloquent JavaScript, Chapter 6, implemented as plain JavaScript classes and console output. It shows a `Vec` class with vector addition, subtraction, and length calculation, a `Group` class with add, delete, has, and static from methods, and a custom `GroupIterator` making groups iterable via `Symbol.iterator`. The code runs directly in the browser console, logging results for each exercise, including a numeric accumulation loop and string iteration, with no external libraries or frameworks beyond vanilla JavaScript.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes