Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ What will the code above print to the console?<<
( ) true {{Incorrect because the expression `a === b` evaluates to false.}}
( ) The code above will throw an error because you cannot compare strings and numbers. {{Incorrect because different data types can be compared using the `==` and `===` operator.}}
( ) The code above will throw an error because there is a syntax error. {{Incorrect because there are no syntax errors in the code segment above.}}
(x) The code above will throw an error because the operator `===` cannot be used between variables with different data types. {{Incorrect because the `===` operator can be used to compare variables with different data types.}}
( ) The code above will throw an error because the operator `===` cannot be used between variables with different data types. {{Incorrect because the `===` operator can be used to compare variables with different data types.}}

||The `==` operator compares the value while the `===` operator compares the value and data type.||
||The `==` operator compares the value while the `===` operator compares the value and data type.||