Advertisement
CR7CR7

array

Sep 18th, 2022
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let array = [
  2.   'one',
  3.   'two',
  4.   'three',
  5.   'four'
  6. ];
  7.  
  8. for (let i = 0; i < array.length; i++) {
  9.   console.log(`array[${i}] = '${array[i]}'`);
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement