What is console.log?

前端 未结 22 2309
面向向阳花
面向向阳花 2020-11-22 00:41

What is the use of console.log?

Please explain how to use it in JavaScript, with a code example.

22条回答
  •  抹茶落季
    2020-11-22 01:00

    In java scripts there is no input and output functions. So to debug the code console.log() method is used.It is a method for logging. It will be printed under console log (development tools).

    Its is not present in IE8 and under until you open IE development tool.

提交回复
热议问题