Please enable JavaScript to use CodeHS

CS Glossary

Flashcards

Course:

Module:

Lesson:

Search:

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.

Indexing into an array Java

Getting a value at a particular index in an array.

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

Array length Java

The number of elements an array can hold. You can get the length of an array `arr` by typing `arr.length`

array.length Java

Returns the length of the array

Traversing an Array Java

Traversing 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.

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.

Iterate General

A single run through the instructions contained a loop

Iterate

Iterating over an array Java

Looping through all of the elements of an array

Index Java

Array values are stored at a particular index and we access elements in the array by referencing this index value. Index values in Arrays start a 0.

array[index] Java

Accesses an element in the array to either update or retrieve.

splice() JavaScript

The `splice()` method changes the contents of an array by removing or replacing existing elements and/or adding new elements.

remove(index) JavaScript

This function removes an element from the given index position.

List JavaScript

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

List Array

Data Structure Java

A particular way of organizing data in our programs.

Simulation General

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