Need help with html/javascript

So, i'm very new to programming
Here is my code,
<!doctype html>
<html>
<head>
<script>
function convert ()
{

var c = prompt.window("enter celsius")
var f = c*(9/5 +32)

{
document.write("The temperature in fahrenheit is" +f)
}
}
</script>

</head>

<body>
<button type="button" onclick="convert ()">Calculate </button>

</body>
</html>
it's supposed to convert celsius to fahrenheit. Very simple but it doesn't work in its current state.
any help would be very appreciated.

Comments

Sign In or Register to comment.