Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let array = [
- 'one',
- 'two',
- 'three',
- 'four'
- ];
- for (let i = 0; i < array.length; i++) {
- console.log(`array[${i}] = '${array[i]}'`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement