← Back to challenges

Check If objOne Is Equal to objTwo

JavaScriptHardobjectsvalidationlanguage_fundamentals

Instructions

Create a function that checks to see if two object arguments are equal to one another. Return true if the objects are equal, otherwise, return false.

Example #1

// The first object parameter.

{
  name: "Benny",
  phone: "3325558745",
  email: "[email protected]"
}

// The second object parameter.

{
  name: "Jason",
  phone: "9853759720",
  email: "[email protected]"
}

➞ false

Example #2

// The first object parameter.

{
  name: "Jason",
  phone: "9853759720",
  email: "[email protected]"
}

// The second object parameter.

{
  name: "Jason",
  phone: "9853759720",
  email: "[email protected]"
}

➞ true

Notes

If you have a suggestion on how to make these instructions easier to understand, please leave a comment. Your feedback is greatly appreciated.

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Check if a Number is Prime