getLength

Objective(s): Practice using the length property of an array.

Given an arraynums, complete the code to get the length of the array.

Remember that for arrays, length is a property that is different from Strings. With String objects, you are using a method which means you have a set of parenthesis. With arrays, you do not because it is a property and NOT a method. Anytime you use a method you have parenthesis involved. There is no length method for arrays.

Type your solution        
Skills Practiced:
3.D
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.