Ch10 P308 looks wrong..
Why is script.text set to quoted code?
Surely the double quotes are incorrect in the catch block.
You have
var code = "function sayHi() {alert('hi');}";
Then later script.text = "code";
surely
script.text = code is the solution.
|