ConsoleMessageConsoleMessage.textVersion: 21.5.0On this pageConsoleMessage.text() methodThe text of the console message.Signature:class ConsoleMessage { text(): string;}Returns:string