2 problems. 1) you are not using the global variable in your functions. You are recreating one in local scope. You can fix that by changing your functions to:
function FahrenheightConvert() {
fahrenheight = Math.round(9 / 5 * (celcius + 32));
}
function KelvinConverter(){
kelvin = (celcius + 273.15);
}
This will use the global scope variable instead.
2) You are never calling the functions, only defining them. Thus, you can invoke them like this:
FahrenheightConvert();
KelvinConverter();
This will actually run the code you created. The final result is this:
var celcius;
var fahrenheight;
var kelvin;
celcius = Number(window.prompt("Enter Degree", 50));
document.write(celcius + " degrees Celcius.");
function FahrenheightConvert() {
fahrenheight = Math.round(9 / 5 * (celcius + 32));
}
/* Actually call the funciton */
FahrenheightConvert();
document.write("<br>");
document.write(fahrenheight + " degrees Fahrenheight.");
function KelvinConverter(){
kelvin = (celcius + 273.15);
}
/* Again, actually call the funciton */
KelvinConverter();
document.write("<br>");
document.write(kelvin + " in Kelvin.");
P.S., since you're new to JavaScript, I will let you know of some another option you have, which you might find useful.
You also have to option of rewriting your function to return a value. Thus, your function will look like this (I've only used one for this example):
function FahrenheightConvert(celcius) {
var fahrenheight = Math.round(9 / 5 * (celcius + 32));
return fahrenheight;
}
This will make your call be equivalent to the value of fahrenheight. This way, you could change your write statement to:
document.write(FahrenheightConvert(celsius) + " degrees Fahrenheight.");
Finally, I should also mention that, as comments have mentioned, my first option (before the P.S.) is bad design and is not recommended. I would highly suggest rewriting your functions this way instead. That way, you have a general purpose conversion function you can use however you like, without worrying that it will write to the document directly, or something.