The browser storage localStorage is not available. Either your browser does not support it or you have disabled it or the maximum memory size is exceeded. Without localStorage your solutions will not be stored.
Fahrenheit
The following task is taken from the freeCodeCamp.
Exercise
Write a function
Example:
toFahrenheit
that converts a temperature from Celsius
to Fahrenheit.Example:
toFahrenheit(0)
should return 32
.
+ Hint
If C is the temperature in Celsius and F the temperature in Fahrenheit, the following applies: F = 1.8 * C + 32.
+ Solution
function toFahrenheit(celsius) {
return 1.8 * celsius + 32;
}