title: How can I write into the browser´s console via Blazor WebAssembly?
body: <p>In JavaScript we can use the following call to write debug output to the browser´s console:</p>
  
  <pre><code>console.log("My debug output.");
  </code></pre>
  
  <p>Output in Google Chrome:</p>
  
  <p><a href="https://i.stack.imgur.com/06AuT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/06AuT.png" alt="console output in google chrome"></a></p>
  
  <p>How can I log "My debug output" in my component to the browser´s console via Blazor WebAssembly?</p>
  
  <pre><code>&lt;button @onclick="ClickEvent"&gt;OK&lt;/button&gt;
  
  @code {
  
      private void ClickEvent()
      {
          // console.log("My debug output.");
      }
  }
  </code></pre>