1/8
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
for
loop
classic index based loop
while
loop
loops while a condition is true
do...while
loop
runs at least once, then continues while condition is true.
for...of
loop
loops through iterable objects (like arrays, strings, etc.)
for...in
loop
through enumerable properties of an object (keys).
.forEach()
method
Array method for looping
(not breakable with break
or return
)
.map()
method
transforms each element in an array and returns a new array.
.filter()
method
Filters an array based on a condition, returns a new array.
.reduce()
method
Reduces array to a single value.