Creating and manipulating data structures
forEach, map, filter, every, some
arrow functions, classes
{}obj.keyobj["key"]delete keyword[]arr.lengthpush() - Add to end, return new lengthpop() - Remove from end, return removed elementunshift() - Add to beginning, return new lengthshift() - Remove from beginning, return removed elementreturn keywordreturn with a conditional statementtrue are includedtrue only if ALL elements passfalse if ANY element failsreturn with a conditional statementtrue if ANY element passesfalse only if ALL elements failreturn with a conditional statementextends for inheritancefunction keyword, use =>{} and returnthis[5, 10, 15, 20, 25, 30]map() with an arrow function to triple each numberfilter() with an arrow function to keep only numbers > 15forEach() with an arrow function to log each resultTripled: [15, 30, 45, 60, 75, 90]Filtered: [20, 25, 30]202530
filter() to find students with grade above 80map() to create an array of just the student namesevery() to check if all students are passing (grade >= 60)High achievers: [{name: "Alice", ...}]Names: ["Alice", "Bob", "Carol"]All passing: true
Character class with name and health propertiesdescribe() method that logs character infoWarrior class that extends Characterweapon property and an attack() method to Warriorsuper() in the child class constructor to call the parent constructor.