Answer:
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 javascript. 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()
Answer:
Use an equal sign at the beginning of the formula (A)
Use open and close parenthesis for each set of nested functions (B)
Functions should be in CAPS
Separate functions with commas
Explanation:
Answer:
Hi there Rumanruxi! The error is in the if statement "if(userNum = 2)".
Explanation:
The if statement in this Java code is assigning userNum the value of 2 instead of comparing it with the value of 2. For equals comparison we need to write two equals "==" in the statement as: "if (userNum == 2)". This will return true if userNum is 2 otherwise it will return false.
Explanation:
The statement which says that a graph is complete means an undirected graph whose every pair of vertices is connected by an particular edge or unique edge.
An undirected graph is a graph whose edges soea not contain any direction means to which vertex they are directed.
A complete graph has an edge between every pair of vertices that exist in that graph.