Skip to content

list

> a = [1,2,3]
[ 1, 2, 3 ]
> a[a.length]
undefined
> a[a.length-1]
3

Add two lists together

a = [1,2]
b = [3,4]
c = a.concat(b)
console.log(c)