oh, my. I'm beginning to see another reason why we shouldn't be doing homework questions. From the instructions:
Quote:
|
Do not ... initialize fullname, it will be done for you.
|
so this:
will wipe out the value of the established variable. ie, FAIL
there's nothing about Bold_Name accepting an argument, so this:
Code:
function Bold_Name(which)
will also naturally FAIL
the simplest answer I can see here is
Code:
function Bold_Name() {
return "<b>"+fullname+"</b>";
}
slightly fancier being
Code:
function Bold_Name() {
var str = "<b>";
str += fullname;
str += "</b>";
return str;
}