JavaScript:

Objects, Arrays, Iteration

Objectives

  • Create and manipulate arrays and objects
  • Explain the difference between object dot notation and bracket notation
  • Write for loops and while loops
    • Write a for loop to iterate over an array
    • Write a for-in loop to iterate over an object
  • Describe common native methods for arrays and objects
  • Write a deeply nested object
  • Read data from a deeply nested object

Arrays

  • creating arrays
  • accessing elements
  • updating elements

Objects

  • creating objects
  • dot notation vs bracket notation
  • deleting

Iterations

  • for   loops
  • for-in    loops
  • while   loops
  • do-while   loops
for
for-in
while
do-while

for   loops

for
for(conditional statement){
  // Some code you want to run in a loop
}

for   loops

for

objects-arrays-iteration

By Dize Hacioglu

objects-arrays-iteration

  • 118