Skip to content

Commit eaac290

Browse files
committed
added prediction of why error occurs when program runs
1 parent 27843a8 commit eaac290

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Sprint-3/1-key-errors

‎Sprint-3/1-key-errors/1.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Predict and explain first...
22

33
// Why will an error occur when this program runs?
4-
// =============> write your prediction here
4+
// like the original code in 0.js a syntax error will occur because decimalNumber has already been declared as the parameter in the function so it cannot be redeclared inside the function with the same name.
55

66
// Try playing computer with the example to work out what is going on
77

0 commit comments

Comments
 (0)