Javascript console.groupCollapsed() Method with label

Introduction

Specifying a label for the collapsed group:

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

View in separate window

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

console.log("Hello world!");
console.groupCollapsed("myLabel");
console.log("Hello again, this time inside a collapsed group, with a label!");

</script>/*  w  ww  .  j  a va 2s  . c  o m*/

</body>
</html>



PreviousNext

Related