Console

Methods Summary

TypeNameSummary

void

Report an error to the console..

void

Report a message to the console..

void

Report a warning to the console..

Methods Details

error(value)

Report an error to the console.

Parameters Object value the error object

Returns void

Sample

console.error('ERROR')

log(value)

Report a message to the console.

Parameters Object value the info

Returns void

Sample

console.log('some info')

warn(value)

Report a warning to the console.

Parameters Object value the warning object

Returns void

Sample

console.warn('some warning')

Last updated