I'm getting an unexpected identifier at float farenheitFloat = parseFloat(farenheit)
Can't for the life of me figure out why. Any help?
A little background...validateFarenheit(farenheit) is working.
function convertFarenheit() {
var farenheit = document.getElementById('farenheit').value;
if (validateFarenheit(farenheit)) {
float farenheitFloat = parseFloat(farenheit);
//float celsius = (farenheitFloat - 32) * (5/9);
//float celsiusFormatted = parseFloat(Math.round(celsius * 100) / 100).toFixed(2);
//alert(celsiusFormatted);
}
return;
}
varnotfloatvar farenHeitFloat = parseFloat(farenHeit)