Please enable JavaScript to use CodeHS

Intro JS Glossary

Flashcards

Course:

Module:

Search:

Define a Function JavaScript

Defining a function means to teach the computer a new command and explain what it should do when receiving that command.

Define a Function

Call a Function JavaScript

Calling a function actually gives the command, so the computer will run the code for that function.

Call a Function

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

If Statement

If Else Statement General

Control structure that lets us run either one section of code or another depending on a test.

If Else Statement

Conditional Statement General

A statement that evaluates to true or false.

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

While Loop General

Lets us repeat code as long as something is true.

While Loop

For Loop JavaScript

A for loop lets us repeat code a **fixed number of times**.

For Loop

Timer JavaScript

Timers are used to used perform repeated action in a program

Timer

Callback Function JavaScript

A function passed as a parameter to another function in order to be called later.

Event JavaScript

An event is an action (such as clicking the mouse or pressing a key on the keyboard) that a program detects and uses as input.

Event

Mouse Event General

A mouse event is when the user does something with the mouse, like clicking or moving.

Key Event JavaScript

A key event is when the user does presses any of the keyboard keys.

Constant JavaScript

A variable in a program that has a value that does not change.

Constant

Canvas JavaScript

The screen in which our graphics programs are drawn.

Canvas

Coordinate system JavaScript

A coordinate system uses numbers as coordinates to place objects in a geometric space.

coordinate system

Radius JavaScript

The length between the center and edge of a circle

Argument JavaScript

A variable passed as a value to a function

argument

Parameter JavaScript

A variable passed in from outside the function

parameter

Return JavaScript

Exit a function and return a value

Return

Return Value JavaScript

The value returned from a function when the function is called.

Default Value JavaScript

The default value given to a parameter when it is initialized if no value is passed in.

Variable General

A symbol or container that holds a value.

variable

Scope General

In what part of the program the variable exits

Scope

Global variable JavaScript

A variable that can be used throughout a program, in every scope

Global variable

Local variable General

A variable that is restricted to use in a certain scope of a program

Local variable

Array JavaScript

Also called a list. A data structure that holds a collection of values in a particular order

List Array

Array Index Java

The position of an element in an array. The first element is at index 0, the second element is at index 1, and so on.

Push JavaScript

To add an item to a list or array

Push

Pop JavaScript

To remove the item in the last position from an array

Pop

Looping Through Arrays JavaScript

Looping through an array is the process to loop through an array and access each of the elements. Caution must be taken to avoid looping beyond the valid index values.

Array Methods General

Built-in functions that perform various operations on arrays, such as searching, iterating, modifying, and accessing elements.

Software Development Life Cycle General

A methodology that outlines a series of steps that divide the software development process into tasks you can assign, complete, and measure.