unit 5 Flashcards

1
Q

variables vs list

A

var hold one piece of info
list - container used to keep similar pieces of data organized in one place

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

list actions

A

add, replace, access, or remove

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

list in JavaScript

A

array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

list in code

A

[]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what does the index of a list start with?

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

insertItem

A

adds at specific index
list gets reindexed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

appendItem

A

add at the end of the list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

removeItem

A

removes at specific index
list gets reindexed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

replaceItem

A

list name [index]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is reindex?

A

everything gets updated with their correct index when order is changed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

loop

A

define and control behavior that should repeat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

iteration

A

generic term for looping
usually refers to repetition of a process or procedure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly