Ask Question

Write one line of code to print animals, an array of Animal objects.

+4
Answers (1)
  1. 21 March, 20:39
    0
    console. log (Animal);

    Explanation:

    The statement written above prints the array Animal which contains objects. There are two to three ways to print the array Animal in jа vascript. One of the method is written in the answer it prints the arrays in the console of the browser.

    You can go to the console by pressing F12 and then clicking on the console.

    Other methods to print are

    Simple write Animal after defining the array. Use alert. document. write ()
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write one line of code to print animals, an array of Animal objects. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers