// REGULAR ARRAY (can have duplicates)
x = []
x.push(1)
x.push(1)
x.length // 2
// SET (cannot have duplicates)
y = new Set()
y.add(1)
y.add(1)
y.size // 1
Created
July 17, 2018 20:28
-
-
Save amysimmons/4afd28854529a3feaa2a424d22b7e23d to your computer and use it in GitHub Desktop.