method Console.logConsole.log(...data: any[]): voidDeprecatedOutputs a message to the console ExamplesExample 1 console.log('Hello', 'World', 123); Parameters<span>...data</span>: any[]Return Typevoid