how to insert a value into an array javascript

JavaScript
var list = ["foo", "bar"];


list.push("baz");


["foo", "bar", "baz"] // result


Source

Also in JavaScript: