Javascript console.count() Method remove label

Introduction

To remove the label, use "" as a parameter:

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

Even if the console.count() method is called two times, the number in each case will be 1.

The call has no label, and the browser treats it as a new "console count" each time.

View in separate window

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

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

</script>/*w ww  .j ava  2  s  .com*/
</body>
</html>



PreviousNext

Related