# JavaScript Part 1: 22-Exercise 6- Get Max

**URL:** <https://forum.codewithmosh.com/t/javascript-part-1-22-exercise-6-get-max/13393>\
**Category:** JavaScript\
**Created:** [July 1, 2022, 6:02am UTC](https://forum.codewithmosh.com/t/javascript-part-1-22-exercise-6-get-max/13393 "2022-07-01T06:02:47Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)\
**Post date:** [July 6, 2022, 10:59pm UTC](https://forum.codewithmosh.com/t/javascript-part-1-22-exercise-6-get-max/13393/5 "2022-07-06T22:59:17Z")

</div>

Looks like you forgot to call `areEqual` and `areSame` with both parameters:

```javascript
console.log(areEqual(productdisplay, productdisplay1));
console.log(areSame(productdisplay, productdisplay1));

```

And please create a new post for distinct questions like this. Thanks!

---

_[View the full topic](https://forum.codewithmosh.com/t/javascript-part-1-22-exercise-6-get-max/13393)._
