


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















JavaScript Programming Language
Features: High-level, dynamically typed Object-based Prototype-based inheritance Event-driven and asynchronous programming
External file: Variables: var (function-scoped) let and const (block-scoped) Data Types:
Primitive: Number, String, Boolean, Null, Undefined, Symbol, BigInt Non-Primitive: Objects, Arrays, Functions
element.addEventListener("click", functionName); Common events: click, mouseover, keydown, load, submit
Template literals: Hello ${name} Destructuring: let [a, b] = [1, 2]; let {x, y} = {x: 5, y: 10}; Spread/rest ... operator Modules: import, export
Callbacks Promises: fetch(url) .then(response => response.json()) .then(data => console.log(data)); Async/Await:
async function getData() { let res = await fetch(url); let data = await res.json(); console.log(data); }