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.

Three identical values

The following task can be solved by an interaction of strict equality and a Boolean operator.

Exercise

Write a function equals that checks 3 values for strict equality. The function should only return true if all 3 values are equal.

Example: equals(1, 1, 1) should return true and equals(1, 2, 1) should return false.
function equals(a, b, c) {
  // Compare a with b and a with c.
  // Connect the result of both comparisons with &&.
}
function equals(a, b, c) {
  return a === b && a === c;
}

loving