+ 1

What is console in JS?

Hi sololearner could anyone explain to me what is console or console.log and what it differ them from "print" in JS?

22nd Jun 2018, 11:12 AM
Ybu
2 Answers
+ 6
Hello, Ybu ! The console.log() method outputs debug information to the console, i.e. hiding it from users. There are a number of similar functions: console.info(), console.warn(), and console.error(). All of them differ only visually in the console. Read about all the advantages http://habrahabr.ru/post/114483/
22nd Jun 2018, 11:16 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 1
Thanks Alexander Sokolov for the explanation but the website does it has explanation in English cause I don't have any idea about the language.
22nd Jun 2018, 11:22 AM
Ybu