Professional Documents
Culture Documents
Javascript Coding - Spot That Error 2
Javascript Coding - Spot That Error 2
Javascript Coding - Spot That Error 2
Teacher:
Date:
Each problem consists of a line or lines of code that have errors. If it is a single line of code, there is a
single error, but multiple lines of code may have multiple errors. Please write the correct code in the
boxes given.
Problem 1.
Incorrect Code:
Correct Code:
Problem 2.
Incorrect Code:
Correct Code:
Problem 3.
Incorrect Code:
Correct Code:
Problem 4.
Incorrect Code:
Correct Code:
Problem 5.
Incorrect Code:
Correct Code:
Problem 6.
Correct Code:
textSize(14.4);
stroke("black");
strokeWeight(1.1);
Problem 7.
Incorrect Code:
fill(green");
text("I have extended the amount of farm land! , , 140, 150, 150);
Correct Code:
Problem 8.
Incorrect Code:
fill("purple);
text(Yay, that's really exciting! That means that I get to roam around more!",
225, 170, 150 ,300);
Correct Code:
Problem 9.
Incorrect Code:
textSize(35)
fill("blue);
Correct Code:
Problem 10.
Incorrect Code:
Correct Code:
Write a brief description of what the scene should look like when the code is
run properly: