JSFiddle - React, Tailwind, and code Playground

by JCatJ098d9837

HTML

<!DOCTYPE html>

<title>lec 5 while total</title>

</head>
<body>
	<h3>While Total Example</h3>
	
</body>
</html>

JavaScript

var total = 0;
		
		for(var i=1; i<=4; i++)
		{
			total += parseInt(prompt("Enter Number"));
		}