Adding new element to the end of an array
A simple example of adding a new element to the end of an array.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var vehicles = ["Lamborghini", "Ferrari", "A-10 Thunderbolt", "Titanic", "F-16", "Mi-7", "T-34/85"];
console.log("Before = " + vehicles);
vehicles.push("PanzerKampfWagen IV");
console.log("After = " + vehicles);
</script>
</body>
</html>