method Console.warn Private Console.warn(...data: any[]): void Outputs a warning message to the console Examples Example 1 console.warn('Deprecated feature used'); Parameters ...data: any[] Return Type void