Krish
last month
Krishcountry asked

Is console.log() in javascript is same as print() in python

Kelish Rai
Expert
last month
Kelish Rai answered

Yes, console.log() in JavaScript is similar to print() in Python — both are used to display information to the console or terminal.

JS
This question was asked as part of the Learn JavaScript Basics course.