Which function is used to output data to the console in JavaScript?

  • log()
  • print()
  • console.log()
  • display()
The console.log() function is used to output data to the console in JavaScript. Option 3 is the correct syntax for using this function to log data to the console, making it the right choice.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *