Edit in JSFiddle

//array of animals
var animals = ["Dog","Cat","Bird","Snake","Mouse","Elephant","Goat","Lion","Buffalo","Moose","Monkey"]

console.log(animals);

var str = "Hello World, my name, is Nazmus. And, I live, on, Earth!";
console.log(str.split(" "));

console.log(animals.sort());
console.log(animals);

console.log(animals.reverse());

console.log(animals.slice(5,10));
console.log(animals);

console.log(animals.splice(5,2,"Chipmunk","Bear","Mongoose","Zebra","Cow"));
console.log(animals);

console.log(animals.toString());
console.log(animals.join(" & "));

console.log(animals.pop());
console.log(animals);

console.log(animals.push("Panda"));
console.log(animals);
console.log(animals[2]);
console.log(animals.shift());
console.log(animals[1]);

console.log(animals[2]);
console.log(animals.unshift("Shark"));
console.log(animals);
console.log(animals[2]);
<!-- Easy JavaScript #14 - Array Methods -->
<p>
Welcome to the 14th Easy JavaScript tutorial, part of <a href="http://www.easyprogramming.net">EasyProgramming.net</a>. Today we'll cover some array methods and a string method which I intentionally skipped in the String Methods tutorial. 
</p>
<p>
Let's look at some array methods!
</p>
<h2>
Methods:
</h2>
<ul>
<li><strong>array.toString()</strong> - convert an array to a string</li> 
<li><strong>array.join()</strong> - convert an array to a string but you can specify a separator</li>
<li><strong>array.pop()</strong> - remove the last element from the array (lifo)</li>
<li><strong>array.push()</strong> - add an element to the end (lifo)</li>
<li><strong>array.shift()</strong> - remove the first element from the array (fifo)</li>
<li><strong>array.unshift()</strong> - add an element in the beginning (fifo)</li>
<li><strong>array.splice()</strong> - add or remove new elements anywhere in the array</li>
<li><strong>array.slice()</strong> - create a new array with previous array data</li>
<li><strong>array.sort()</strong> - sort the array values in ascending order</li>
<li><strong>array.reverse()</strong> - sort the array values in descending order</li>
<li><strong>string.split()</strong> - split a string into an array</li>
</ul>
<p>
W3Schools: <a href="http://www.w3schools.com/js/js_array_methods.asp">http://www.w3schools.com/js/js_array_methods.asp</a>
</p>
ul > li{
  padding-bottom: 7px;
}