Skip to content

Commit 9558f43

Browse files
committed
Add prediction comment explaining SyntaxError in 0.js
1 parent 3a1178c commit 9558f43

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Predict and explain first...
22
// =============> write your prediction here
3+
// Prediction
4+
// A SyntaxError is thrown with message: Identifier 'str' has already been declared
35

46
// call the function capitalise with a string input
57
// interpret the error message and figure out why an error is occurring

0 commit comments

Comments
 (0)