JavaScript Console warn()
JavaScript Console warn()
The warn() method is used for writing a warning to the console. It is used for testing and debugging purposes.
Syntax:-
Its syntax is:- console.warn(message)
Further Explanation:-
Parameter | Description |
message | Required. The warning message to write to the console. |