Please enable JavaScript to use CodeHS

California CS Glossary

Flashcards

Course:

Module:

Lesson:

Search:

List JavaScript

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

List Array

Array JavaScript

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

List Array

Start Function JavaScript

This is the function that is called when you click run.

Start Function

JavaScript Documentation JavaScript

Documentation for the syntax and objects in Javascript that we use on CodeHS.

javascript documentation javascript docs js documentation js docs graphics data structures

Canvas JavaScript

The screen in which our graphics programs are drawn.

Canvas

Timer JavaScript

Timers are used to used perform repeated action in a program

Timer

Coordinate system JavaScript

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

coordinate system

Animation JavaScript

Showing several still images one after another very quickly, to give the illusion of animated movement.

Callback Function JavaScript

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

Constant JavaScript

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

Constant

Magic Number JavaScript

A number in your code that appears arbitrary. These should all be replaced with calculations or constants.

Magic Number

Randomize JavaScript

To generate or select a random object

random, randomizer

Parameter JavaScript

A variable passed in from outside the function

parameter

DRY Principle JavaScript

Don't repeat yourself: try to simplify your code and avoid repeating code unnecessarily.

dry, repeated code

Edge Case General

An edge case is a problem in your code that only occurs in extreme situations.

Edge Case

Global variable JavaScript

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

Global variable

getWidth() JavaScript

JavaScript function that returns the width of the graphics canvas

getHeight() JavaScript

JavaScript function that returns the height of the graphics canvas

Radius JavaScript

The length between the center and edge of a circle

Scope General

In what part of the program the variable exits

Scope

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

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

Argument JavaScript

A variable passed as a value to a function

argument

Function body JavaScript

The part of a function that contains the commands

function body

Return JavaScript

Exit a function and return a value

Return

Return Value JavaScript

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

Loop General

A loop is a way to repeat code in your program.

Loop

Simulation General

A animated model that represents a real-life thing, process, or situation.

Model General

A set of rules for how things interact within a simulation.