What is console.log?

前端 未结 22 2310
面向向阳花
面向向阳花 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:12

    I really feel web programming easy when i start console.log for debugging.

    var i;
    

    If i want to check value of i runtime..

    console.log(i);
    

    you can check current value of i in firebug's console tab. It is specially used for debugging.

提交回复
热议问题