function ty(pcheck) {
document.write("I want "+pcheck);
}
var pcash = 500;
ty(pcheck);
Can the outside variable have a different name and the function still call it ? I read it can, so when I attempt it, it doesn't work !
function hu () {
var one = "today";
var two = "tomorrow";
var total = one+two;
return (total);
}
hu()
document.write(total);
If return, returns the result outside of the function, how come I can't do a write of the return ?