fix(challenges): Typo errors (#39)
This commit is contained in:
committed by
mrugesh mohapatra
parent
9fa5907da0
commit
0c0702d6c0
@ -4106,9 +4106,9 @@
|
||||
"title": "Practice comparing different values",
|
||||
"description": [
|
||||
"In the last two challenges, we learned about the equality operator (<code>==</code>) and the strict equality operator (<code>===</code>). Let's do a quick review and practice using these operators some more.",
|
||||
"If the values being compared are not of the same type, the equality operator will perform a type conversion, and then evaluate the values. However, the strict equalty operator will compare both the data type and value as-is, without converting one type to the other.",
|
||||
"If the values being compared are not of the same type, the equality operator will perform a type conversion, and then evaluate the values. However, the strict equality operator will compare both the data type and value as-is, without converting one type to the other.",
|
||||
"<strong>Examples</strong>",
|
||||
"<blockquote>3 == '3' // returns true because JavaScript performs type converstion from string to number<br>3 === '3' // returns false because the types are different and type conversion is not performed</blockquote>",
|
||||
"<blockquote>3 == '3' // returns true because JavaScript performs type conversion from string to number<br>3 === '3' // returns false because the types are different and type conversion is not performed</blockquote>",
|
||||
"<strong>Note</strong><br>In JavaScript, you can determine the type of a variable or a value with the <code>typeof</code> operator, as follows:",
|
||||
"<blockquote>typeof 3 // returns 'number'<br>typeof '3' // returns 'string'</blockquote>",
|
||||
"<hr>",
|
||||
|
Reference in New Issue
Block a user