-
Notifications
You must be signed in to change notification settings - Fork 15
JSArray.Pop
boxgaming edited this page Jul 25, 2026
·
2 revisions
Removes the last element from an array and returns that element.
result = JSArray.Pop ( a )
- The a parameter contains the native Javascript array on which the operation will be performed.
Import JSArray From "lib/lang/array.bas"
Import JSArray From "lib/lang/array.bas"
Dim plants As Object
plants = JSArray.Create("broccoli", "cauliflower", "cabbage", "kale", "tomato")
Print JSArray.Pop(plants)
Print JSArray.Join(plants)
Print
Print JSArray.Pop(plants)
Print JSArray.Join(plants)tomato
broccoli,cauliflower,cabbage,kale
kale
broccoli,cauliflower,cabbage
JSArray.Create
JSArray.Join
JSArray.Push
JSArray.Shift
JavaScript - Array.pop()