JavaScript · Question 7 of 12

How do you output a value to the browser console in JavaScript for debugging?

1 answer is correct. Easy

Show answer

Answer

  • A console.log(value)

Explanation

console.log writes values to the browser's developer console. echo and print come from PHP.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications