-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0.js
More file actions
11 lines (8 loc) · 642 Bytes
/
Copy path0.js
File metadata and controls
11 lines (8 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
// This is just an instruction for the first activity - but it is just for human consumption
// We don't want the computer to run these 2 lines - how can we solve this problem?
// Interpretation:
// The error "SyntaxError: Unexpected identifier 'is'" means that JavaScript found the word "is", but it didn’t make sense in that position.
// It wasn’t valid code that JavaScript could understand.
// Why the error occurred:
// The error occurred because the sentence was written as plain text instead of a comment.
// To fix it, the sentence should be written as a comment (by adding // at the beginning) so that JavaScript ignores it.