Pushes val onto the end of the array and returns the array itself (enabling chaining).
val
val — value to push.
arr = [1,2] arr.append(3) log arr // [1,2,3]
Last updated 2 months ago