← Back to challenges

Are the Numbers Equal?

JavaScriptHardconditionslogiclanguage_fundamentals

Instructions

Create a function that takes two integers and checks if they are equal.

Examples

isEqual(5, 6) ➞ false

isEqual(1, 1) ➞ true

isEqual("1", 1) ➞ false

Notes

If there is a string then it should return false.

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Shuffle the Name