JavaScript Set Creation Guide
Uncategorized

JavaScript Set Creation Guide

39

Terms

0

Plays

0

Favorites
Shares
Description

This study set covers key JavaScript concepts. Topics may include variables, data types, operators, functions, and control flow.

Top Scores
Show Less
ghost_fill
No players yet
Be the first one to play!
Cards
Show Less
JavaScript

A scripting language primarily used to add interactivity to websites. It's interpreted, not compiled.

Number

A data type in JavaScript.

String

A data type in JavaScript.

Boolean

A data type in JavaScript.

Null

A data type in JavaScript.

Undefined

A data type in JavaScript.

Symbol

A data type in JavaScript.

BigInt

A data type in JavaScript.

Object

A collection of key-value pairs. Keys are strings (or Symbols), values can be any data type.

Loose equality

Equality comparison in JavaScript that performs type coercion (==).

Strict equality

Equality comparison in JavaScript that does not perform type coercion (===).

Variable

A named storage location in memory used to hold data. Declared using let, const, or var.

let

A keyword in JavaScript used to declare block-scoped variables that can be reassigned.

const

A keyword in JavaScript used to declare block-scoped constants that cannot be reassigned.

var

A keyword in JavaScript used to declare function-scoped variables that can be reassigned.

Operators

Symbols that perform operations on operands (e.g., +, -, *, /, %, ++, --, ==, ===, !=, !==, &&, ||, !).

Array

An ordered collection of data, accessed by index (starting at 0).

Bracket notation

Method of accessing elements in an array using square brackets and the index (e.g., myArray[index]).

Dot notation

Method of accessing properties of an object using a dot (e.g., myObject.property).

Function

A block of reusable code that performs a specific task. Defined using the function keyword.

Parameters

Variables listed in the function definition.

Arguments

Values passed to the function when it is called.

Loop

A control structure that repeats a block of code.

for

A type of loop in JavaScript.

while

A type of loop in JavaScript.

dowhile

A type of loop in JavaScript.

Conditional statement

A control structure that executes a block of code based on a condition.

Event

An action or occurrence that happens in the browser (e.g., a mouse click, key press, page load).

Event listener

A function that is executed when a specific event occurs. Added using addEventListener().

DOM manipulation

Modifying the structure, style, or content of a web page using JavaScript.

JSON

JavaScript Object Notation; a lightweight format for exchanging data.

Asynchronous JavaScript

JavaScript code that doesn't block execution while waiting for a task to complete (e.g., network requests). Uses promises, async/await.

Promise

Objects that represent the eventual completion (or failure) of an asynchronous operation.

asyncawait

Syntax that makes asynchronous code look and behave a bit more like synchronous code.

Callback function

A function passed as an argument to another function, to be executed later.

Scope

The accessibility of variables. Variables have either global, function, or block scope.

Hoisting

JavaScript's mechanism of moving declarations to the top of their scope before code execution. Applies to var declarations, but not let or const.

this keyword

Refers to the object that is executing the current function. Its value depends on how the function is called.

Closure

A function that has access to variables from its surrounding scope, even after that scope has finished executing.