Change equality sign =
to equality sign ==
This commit is contained in:
parent
445bda3980
commit
abfa6dc1fe
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ In JavaScript they are written like this:
|
||||||
|
|
||||||
- Greater/less than: <code>a > b</code>, <code>a < b</code>.
|
- Greater/less than: <code>a > b</code>, <code>a < b</code>.
|
||||||
- Greater/less than or equals: <code>a >= b</code>, <code>a <= b</code>.
|
- Greater/less than or equals: <code>a >= b</code>, <code>a <= b</code>.
|
||||||
- Equals: `a == b`, please note the double equality sign `=` means the equality test, while a single one `a = b` means an assignment.
|
- Equals: `a == b`, please note the double equality sign `==` means the equality test, while a single one `a = b` means an assignment.
|
||||||
- Not equals. In maths the notation is <code>≠</code>, but in JavaScript it's written as <code>a != b</code>.
|
- Not equals. In maths the notation is <code>≠</code>, but in JavaScript it's written as <code>a != b</code>.
|
||||||
|
|
||||||
In this article we'll learn more about different types of comparisons, how JavaScript makes them, including important peculiarities.
|
In this article we'll learn more about different types of comparisons, how JavaScript makes them, including important peculiarities.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue