Aren't ther missing brackets behinde the "length"? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Aren't ther missing brackets behinde the "length"?

Tutorial syntax mistake?

8th Dec 2016, 9:30 PM
Heiko
3 Respostas
+ 3
no it isnt missing a () as it is not a method, but an attribute/variable
8th Dec 2016, 9:42 PM
Aditya
Aditya - avatar
+ 2
The arrayĀ lengthĀ property sets or returns the number of elements in an array. It represents an unsigned, 32-bit integer thatĀ is always numerically greater than the highest index in the array.
8th Dec 2016, 9:41 PM
Aditya
Aditya - avatar
0
Thanks
8th Dec 2016, 9:50 PM
Heiko