The browser storage localStorage is not available. Either your browser does not support it or you have disabled it or the maximum memory size is exceeded. Without localStorage your solutions will not be stored.
Strict inequality
With
!==
two values are compared for strict inequality.
let c1 = 'rose' !== 'Rose';
let c2 = 10 !== '10';
Both comparisons result in true
.
The first one, because the two strings differ in upper and lower case.
The second, because the two values differ in type.Exercise
Write a function
Example:
unequal
that checks 3 values for strict inequality. The function
should return true
if all three parameters are strict unequal. Otherwise false
.Example:
unequal(1, 2, 3)
should return true
and
unequal(1, 1, 2)
should return false
.
+ Hint
function unequal(a, b, c) {
return a !== b && ...
}
+ Solution
function unequal(a, b, c) {
return a !== b && a !== c && b !== c;
}