// initialize array
var arr = [
"Hi",
"Hello",
"Bonjour"
];
// append new value to the array
arr.push("Hola");
// append multiple values to the array
arr.push("Salut", "Hey");
x={1:2, 3:4, 5:6}
python
len(x) -> 3
js
Object.keys(x).length -> 3