JSFiddle - React, Tailwind, and code Playground
by refhat
JavaScript
function number(x) { if(x === 1) { alert("ok"); } else { alert("Invalid number was given on line ...") } } number(2);