Need help with html/javascript

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

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

document.write("The temperature in fahrenheit is" +f)


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

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.


Sign In or Register to comment.