Count the Colors
easyQuestion 97Every array knows how many elements it holds through its .length property. You are given an array of color names. Print how many colors are in the array using console.log.
Expected output
5= newline. The output ends with a newline, so print one after the last line.
Hints2 available
Sign in to use hintsTopics
Arrays
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · 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.