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.


Write a function equals that checks 3 values for strict equality. The function should only return true if all 3 values are equal. equals(1, 1, 1) should return true and equals(1, 2, 1) should return false.