JavaScript Basics: Variables, Data Types, Operators, Conditional Statements, and Loops

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering the core fundamental concepts of JavaScript, including variable declarations, primitive and reference data types, operators, conditional structures, and looping statements.

Last updated 3:14 PM on 10/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

32 Terms

1
New cards

Variable

A named container used to store data in a program.

2
New cards

let

A JavaScript keyword used to declare a variable whose value may change.

3
New cards

const

A JavaScript keyword used to declare a variable for a value that should not be reassigned.

4
New cards

var

An older JavaScript keyword used for declaring variables.

5
New cards

Data Type

A classification that tells JavaScript what kind of data is stored in a variable.

6
New cards

String

A data type that represents text and can be enclosed in either double quotes or single quotes.

7
New cards

Number

A data type that represents numerical values, including integers and decimals.

8
New cards

Boolean

A data type that has only two possible values: TRUE or FALSE.

9
New cards

Undefined

The state of a variable when it has been declared but has not been given a value.

10
New cards

Null

A data type and value indicating that a variable intentionally has no value.

11
New cards

Object

A data type that stores related information using key-value pairs.

12
New cards

Array

A data structure that stores multiple values in one variable, where each item has an index starting from 0.

13
New cards

Operators

Symbols used to perform operations on values.

14
New cards

Arithmetic Operators

Operators used for mathematical calculations, including addition (+), subtraction (-), multiplication (), division (/), remainder (%), and exponent (*).

15
New cards

Assignment Operators

Operators used to assign values to variables, such as =, +=, -=, *=, and /=.

16
New cards

Comparison Operators

Operators that compare two values and produce a boolean result.

17
New cards

Strict Equality Operator (===)

A comparison operator that checks both the value and the data type of two operands.

18
New cards

Logical Operators

Operators used to combine multiple conditions, including AND (&&), OR (||), and NOT (!).

19
New cards

Logical AND (&&)

A logical operator that requires both conditions to be true in order to evaluate to true.

20
New cards

Logical OR (||)

A logical operator where at least one condition must be true to evaluate to true.

21
New cards

Logical NOT (!)

A logical operator that reverses a Boolean value.

22
New cards

Conditional Statement

A statement that allows a program to make decisions and execute specific blocks of code based on conditions.

23
New cards

if Statement

A conditional statement that executes code when a specified condition evaluates to true.

24
New cards

if…else Statement

A conditional structure used when there are two possible outcomes.

25
New cards

Switch Statement

A statement useful when comparing one single value against several possible values or cases.

26
New cards

break (Switch Statement)

A keyword that prevents JavaScript from continuing execution to the next case in a switch statement.

27
New cards

Loop

A programming construct that repeats a block of code multiple times.

28
New cards

For Loop

A loop commonly used when you know how many times you want to repeat something, structured with initialization, condition, and update expressions.

29
New cards

While Loop

A loop that continues repeating as long as its specified condition remains true.

30
New cards

Do-while Loop

A loop that executes its code block at least once before checking the condition.

31
New cards

For..of Loop

A loop useful for iterating through the values of an array.

32
New cards

For..in Loop

A loop used to iterate through the properties of an object.