function processForm() {
var temperature = document.tempForm.temp.value;
}
According to designed button,I want to take temperature value from text field and to convert numeric value then store it in variable "temperature" that I defined.
JavaScript has a built-in function called Number(). It converts the value in parentheses to a number that can be used in calculations. If it is not a number, it will return NaN (Not a Number).
How can I do this?