JSFiddle - React, Tailwind, and code Playground

by shrenuj

HTML

<script src="https://www.jquery-az.com/javascript/alert/dist/sweetalert-dev.js"></script>
<link rel="stylesheet" href="https://www.jquery-az.com/javascript/alert/dist/sweetalert.css">
<!DOCTYPE html>
<html>
<body>
	<h1>Demo: prompt()</h1>
	<p id="msg"></p>
	
	<script>
		var tenure = prompt("Please enter preferred tenure in years", "15");
    
		document.getElementById("msg").innerHTML = "You have entered " + tenure + " years";
    </script>
</body>
</html>