CJCoding With Joseph
15per day

Array Length

Create an array with these fruits: 'apple', 'banana', 'orange', 'grape', and use console.log() to display:

Array length: 4

Steps:
1. Create an array with the four fruits
2. Use the .length property to get the array length
3. Print "Array length: " followed by the length

Expected Output:

Array length: 4
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (clog, fn, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.