The following javascript program is supposed to print: 1 by 4 by 9
on a single line by itself. unfortunately the program contains at least eight mistakes. write the corrected line beside the line in error.
var n; // text
n : = 1;
document.writeln( n );
document.writeln( “ by “);
document.writeln( “n + 3”);
document.writeln( “ by “ );
document.writeln( n + 5);

Solved
Show answers

Ask an AI advisor a question