console.warn()
The console.warn() method outputs a warning message to the console.
Syntax
warn(obj1)
warn(obj1, /* …, */ objN)
Parameters
- obj1…- objN- : A list of JavaScript objects to output. The string representations of each of these objects are appended together in the order listed and output.
 
Return value
None undefined.