Variables are containers that store data values. Think of them as labeled boxes where you can put information and retrieve it later using the label (name).
Conditionals let your code make decisions. They execute different code blocks based on whether conditions are true or false.
Loops repeat code multiple times. They are essential for processing arrays, counting, and any repetitive task.
Functions are reusable blocks of code that perform specific tasks. They can take inputs (parameters) and return outputs.
Objects store collections of related data as key-value pairs. They represent real-world entities with properties and behaviors.
Arrays are ordered lists that can hold multiple values. Think of them like train cars connected together, each carrying a piece of data.
Adds one or more elements to the end of an array.
Removes the last element from an array and returns it.
Adds one or more elements to the beginning of an array.
Removes the first element from an array and returns it.
Changes array contents by removing, replacing, or adding elements in place.
Returns a shallow copy of a portion of an array into a new array, from start to end (end not included).
Creates a new array with the results of calling a function on every element.
Creates a new array with all elements that pass a test implemented by the provided function.
Executes a provided function once for each array element. Unlike map(), it does not return a new array.
Reduces an array to a single value by applying a function against an accumulator and each element.
Returns the first index at which a given element can be found, or -1 if not present.
Determines whether an array contains a certain element, returning true or false.
Returns the first element that satisfies a testing function, or undefined if none found.