Resources

Whether you're new to JavaScript or looking for a quick reference, these resources will help.

Learning JavaScript

ResourceDescription
MDN Web DocsThe definitive JavaScript reference. Covers every built-in object, method, and language feature.
javascript.infoModern JavaScript tutorial. Covers basics through advanced topics with clear examples.
Eloquent JavaScriptFree online book. Great for beginners who want to understand the language deeply.

Quick References

TopicLink
Array methodsMDN Array Reference
String methodsMDN String Reference
Object methodsMDN Object Reference
JSONMDN JSON Reference
Regular ExpressionsMDN RegExp Guide
DestructuringMDN Destructuring
Template LiteralsMDN Template Literals
ES ModulesMDN Modules Guide

ES2023+ Features

These newer features are fully supported in js-cgi:

FeatureExample
Optional chaininguser?.address?.city
Nullish coalescingvalue ?? "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
Was this page helpful?