# Ending Curly Brace Not Working

**URL:** <https://forum.freecodecamp.org/t/ending-curly-brace-not-working/369199>\
**Category:** General\
**Created:** [April 7, 2020, 12:50am UTC](https://forum.freecodecamp.org/t/ending-curly-brace-not-working/369199 "2020-04-07T00:50:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErcDz](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ercdz/32/296903_2.png) [@ErcDz](https://forum.freecodecamp.org/u/ErcDz)\
**Post date:** [April 7, 2020, 12:50am UTC](https://forum.freecodecamp.org/t/ending-curly-brace-not-working/369199/1 "2020-04-07T00:50:41Z")

</div>

It says that the very last ending tag is a mistake, but I’ve deleted it and even more errors popped up and I can’t see why there should be anything wrong. Please help 😃

```auto
function isEitherEvenOrAreBoth7(num1, num2) {
  if ((num1 % 2 = 0) || (num2 % 2 = 0)) {
      return "Even steven"
  } else if ((num1 == 7 && num2 == 7)) {
  return "7"
  }
  // your code here
}

```

---

<div class="post-metadata">

**Author:** ![rstorms](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rstorms](https://forum.freecodecamp.org/u/rstorms)\
**Post date:** [April 7, 2020, 2:46am UTC](https://forum.freecodecamp.org/t/ending-curly-brace-not-working/369199/2 "2020-04-07T02:46:53Z")

</div>

Do you have a link to the exercise? There is a comment here:  
`// your code here`

---

<div class="post-metadata">

**Author:** ![ErcDz](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ercdz/32/296903_2.png) [@ErcDz](https://forum.freecodecamp.org/u/ErcDz)\
**Post date:** [April 7, 2020, 5:05pm UTC](https://forum.freecodecamp.org/t/ending-curly-brace-not-working/369199/3 "2020-04-07T17:05:14Z")

</div>

It is, but you’d have to make an account to see it (I signed up for coding boot camp prep). I don’t want to know the answer (I want to figure that out on my own), but I really have no idea why that curly brace isn’t correct.

---

<div class="post-metadata">

**Author:** ![IAmRC1](https://avatars.discourse-cdn.com/v4/letter/i/7ea924/32.png) [@IAmRC1](https://forum.freecodecamp.org/u/IAmRC1)\
**Post date:** [April 7, 2020, 5:11pm UTC](https://forum.freecodecamp.org/t/ending-curly-brace-not-working/369199/4 "2020-04-07T17:11:05Z")

</div>

You are assigning 0 to num1 % 2. You need to check if num1%2 is 0. I can see your mistake and I’ve given a hint. Hope you can solve it now.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:59pm UTC](https://forum.freecodecamp.org/t/ending-curly-brace-not-working/369199/5 "2021-06-01T18:59:59Z")

</div>

Closed on June 1, 2021, 6:59pm UTC


