I have to make a calculation with Celsius (C) and Fahrenheit (F), and I think the form action line is wrong. How can I fix it?
Here is my HTML:
<form action="javascript.html">
Convert Celsius to Fahrenheit:<br>
<input type="text" name="converterCtoF"><br>
<input type="submit" value="Submit">
</form>
Here is my JavaScript code:
function tempertureConverter(C) {
return (9/5)*C + 32;
}
What about the other way as well? Converting F to C.