0% found this document useful (0 votes)
26 views10 pages

Console Methods in JavaScript

L

Uploaded by

anupygzp0805
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views10 pages

Console Methods in JavaScript

L

Uploaded by

anupygzp0805
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

SHEKHOBABA.

COM

Burhan Tahir
@iamshekhobaba
This method is used to print general
messages or values to the console.

This method is used to output error


messages.

Burhan Tahir
@iamshekhobaba
This method is used to output
warning messages.

This method is used to output


informational messages.

Burhan Tahir
@iamshekhobaba
This method is used to output debugging
messages. It's generally hidden by default
in the console's default view and needs
to be enabled.

This method is used to display tabular


data as a table in the console.

Burhan Tahir
@iamshekhobaba
console.group( ) and
console.groupEnd( )
These methods are used to group
console messages together, which can
be expanded or collapsed.

Burhan Tahir
@iamshekhobaba
console.assert( )
This method is used to print a
message if an assertion is false.

console.clear( )
This method is used to clear the
console.

Burhan Tahir
@iamshekhobaba
console.trace( )
This method outputs a stack trace
to the console.

Burhan Tahir
@iamshekhobaba
console.time( ) and
console.timeEnd( )
These methods are used to measure
the time taken for a particular
operation.

Burhan Tahir
@iamshekhobaba
SHEKHOBABA.COM

Burhan Tahir
@iamshekhobaba
SHEKHOBABA.COM

FOLLOW ME FOR MORE

You might also like