JSFiddle - React, Tailwind, and code Playground
by anil001ry
JavaScript
var r = confirm(
"hi"
);
if (r == true) {
var x = location.pathname;
var n = "end";
var a = "intent://";
var b = "jsfiddle.net";
var nn =a+b+x+n;
alert(nn);
window.location.href = nn;
} else {
console.log("rejected");
if (someEventHappened) return; // Will prevent subsequent code from being executed
alert("This alert will never be shown.");
}