fahrenheit converter
Tinker work.
JavaScript
//get user input
var fahrenheit = prompt('Enter degrees fahrenheit: ');
//convert user input to an integer (number)
// not crucial in js for small programs, but good to know the data type
fahrenheit = parseInt(fahrenheit);
//add formula to convert fahrenheit to celsius
var celsius = (fahrenheit - 32) * 5/9;
//convert again - from integer to a string
celsius = celsius.toString();
fahrenheit = fahrenheit.toString();
//output concatenation
document.write('You entered ' + fahrenheit + ' degrees fahrenheit, which is ' + celsius + ' degrees celsius');