HTML DOM console warn()
The console.warn() function is employed to display a cautionary message in the console. To see this warning message, just open the console.
Syntax:
console.warn( message )
Parameters: This approach takes in a required input called "message," which must be a single value. This input is designed to store the warning message.