-
Notifications
You must be signed in to change notification settings - Fork 15
JSArray.Length
boxgaming edited this page Jul 6, 2026
·
1 revision
Returns the number of elements in a given array.
arrayLength% = JSArray.Length ( a )
- The a parameter contains the native Javascript array on which the operation will be performed.
Import JSArray From "lib/lang/array.bas"
Dim colors As Object
colors = JSArray.Create("red", "green", "blue", "orange", "yellow", "white")
Print JSArray.Length(colors)
JSArray.Clear colors
Print JSArray.Length(colors)6
0