Consider the following code:
What is the output?
An array’s length is its element count, which is 4. The element at index 1 is "Venus", and that string contains 5 characters; the output is therefore 4 and then 5 on separate lines.
Community Discussion