I know there is something wrong with my code and seeing as this is my hello world project I am very confused. I have read other posts but nothing will work. Can somebody make this work for me??.
The HTML
<html>
<head>
<link rel="stylesheet" href="game.css">
</head>
<body onload="startgame()">
<div id=content>
<center>
<div id=pricediv>
<p id=price></p>
</div>
<div id=buysell>
<button class=buy>Buy</button>
<button class=sell>Sell</button>
<button onclick="startgame()">Start</button>
</div>
</center>
</div>
</body>
The JavaScript
var paused = "false";
function startgame() {
while (paused === false) {
var price = Math.round(Math.random());
document.getElementById("price").innerHTML = price;
}
}