My student is getting an error alert but the code runs fine.
Can anyone see what the problem is in line 23?
My student is getting an error alert but the code runs fine.
Can anyone see what the problem is in line 23?
seems like some variables aren’t defined in your students program resulting in
“undefined” being passed through as a parameter leading to the warning that it does not accept that type of data in order to ensure that this is fixed simply remove the variables that haven’t been defined or initialize them at the top of there program
var color = "white";
var fontFamily = "Arial";
var fontsize = "20px";
your student could have also made the mistake of not using the correct variable that had a value but was case sensitive though it seems like the first case is more likely i can’t really tell because i can’t see the full project for myself…
Though I hope this helps