JSFiddle - React, Tailwind, and code Playground
by Patel1327
HTML
<input type="button" onclick="start()" value="click">
<p id="out1"></p>
<p id="out2"></p>
JavaScript
function start() {
var a = prompt("Give me a number");
var b = prompt("give me a another number")
anotherFunction(a, b);
}
function anotherFunction(x, y) {
document.getElementById("out1").innerHTML = parseInt(x) + parseInt(y);
}