What is the equivalent of console.log in Blazor?

Platform: Blazor|Category : Debugging, Tips and Tricks

For debugging purposes, we can log or print comments during code execution using Console.WriteLine(“comments”) in Blazor.

Console.WriteLine("Some content logged in Blazor App output window");