Which JavaScript method is used to print content?
-
A
print()
-
B
console.log()
Correct answer
-
C
display()
-
D
write()
Correct answer
B. console.log()
14 views
Explanation
The console.log() method is used to print content to the console.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ