How to get a array lengh?

is there a method or attribute like js (arr.length) ?

Try this:

arr.size()
2 Likes