Question: Which of the following statements writes the value of the selection variable to the console? a. console.log(selection); b. document.console(selection); c. console.alert(selection); d. console.log(selection);

Which of the following statements writes the value of the selection variable to the console?

a. console.log("selection");

b. document.console("selection");

c. console.alert(selection);

d. console.log(selection);

Step by Step Solution

3.33 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related JavaScript Questions!