What is the output of the following code?
let animals = new Array("dog","cat","seal","elephant","walrus","lion"); console.log(animals.indexOf("elephant"));
Click to view the answer
3