Javascript console.count() Method count twice with label

Introduction

Call console.log two times, with a label, and see the result:

Press F12 on your keyboard to view the message in the console view.

When adding a label to the console.count() method, the label will be written in the console.

This is because both calls have the same label.

View in separate window

<!DOCTYPE html>
<html>
<body>
<script>

console.count("myLabel");
console.count("myLabel");

</script>/*from   w w  w.  j a  v  a2  s. com*/
</body>
</html>



PreviousNext

Related