Resources
Whether you're new to JavaScript or looking for a quick reference, these resources will help.
Learning JavaScript
| Resource | Description |
| MDN Web Docs | The definitive JavaScript reference. Covers every built-in object, method, and language feature. |
| javascript.info | Modern JavaScript tutorial. Covers basics through advanced topics with clear examples. |
| Eloquent JavaScript | Free online book. Great for beginners who want to understand the language deeply. |
Quick References
ES2023+ Features
These newer features are fully supported in js-cgi:
| Feature | Example |
| Optional chaining | user?.address?.city |
| Nullish coalescing | value ?? "default" |
| Array.at() | arr.at(-1) — last element |
| Object.hasOwn() | Object.hasOwn(obj, "key") |
| Array.findLast() | arr.findLast(x => x > 5) |
| Array.toSorted() | arr.toSorted() — non-mutating sort |
| Array.toReversed() | arr.toReversed() — non-mutating reverse |