JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" value="Pssrint" onclick="bo();">

JavaScript

try {
    window.print()
}catch(e) {alert(e.message)}

 alert("Hello world!");

function msg() {
    alert("Hello world!");
}