method Console.warnConsole.warn(message?: any,...optionalParams: any[],): voidDeprecatedThe console.warn() function is an alias for error. Parametersoptionalmessage: any<span>...optionalParams</span>: any[]Return Typevoid