1/21
Vocabulary flashcards generated from lecture notes covering JavaScript operators, conditional statements, control flow loops, dialog boxes, and function declarations.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Prefix operators
Operators that occur before the operand.
Postfix operators
Operators that occur after the operand.
Infix operators
Operators that occur between operands.
Operands
Entities that can be both values and variables operated upon by operators.
Loops
An easy way to repeat any fragment of the code as many times as wanted, or until some condition is met.
for of loop
A loop dedicated for use with arrays.
while loop
A loop normally used when you do not know exactly how many times something should be repeated, but do know when to stop.
for loop
A loop belonging to the category suited for situations where it is known how many times the loop should be executed.
do while loop
A loop in which the condition is checked after each iteration.
else keyword
An optional part of the if statement that allows adding a second code block executed only when the initial condition is NOT met.
if statement
A statement that checks a given condition and, depending on its Boolean value, either executes a block of code or skips it.
switch case statement
A statement that evaluates one conditional expression and tries to match its value to one of several given cases.
Prompt dialog box
A dialog box containing OK and Cancel buttons, along with a single-line text field allowing the user to input text.
confirm dialog box
A dialog box similar to alert that accepts one optional parameter and displays a message with confirmation options.
Function
A separated piece of code, constituting a certain closed logical whole, intended to perform a specific task.
let keyword
A keyword used to declare variables that are local inside the code block or function block.
Synchronous execution
The standard execution flow where subsequent instructions are executed in the exact order in which they are placed in the code.
Callbacks
Functions that are passed as arguments to other functions.
Function statement
A function declaration that starts with the function keyword followed by the function name.
Function expressions
A method to store a function in a variable or pass it as an argument without previously declaring it by name.
return
A statement causing a function to end immediately where it occurs and allowing a given value to be passed back to where it was called.
Asynchronous
A complex mode of program operation strongly dependent on the specific programming language and environment.