Create your own guessing game in JavaScript

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Guessing Game</title>
<script>
function startGame(){
i=1;
computer=Math.floor(Math.random()*100);
score=1000;
while(true){
player=parseInt(prompt("Enter your num...