# Code works but FCC won't accept

**URL:** <https://forum.freecodecamp.org/t/code-works-but-fcc-wont-accept/448538>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [February 26, 2021, 8:38am UTC](https://forum.freecodecamp.org/t/code-works-but-fcc-wont-accept/448538 "2021-02-26T08:38:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [February 26, 2021, 7:15pm UTC](https://forum.freecodecamp.org/t/code-works-but-fcc-wont-accept/448538/5 "2021-02-26T19:15:25Z")

</div>

Here is the issue:

```auto

if (process.env.MESSAGE_STYLE=== "uppercase") {
  response = "HELLO JSON"
} else {
  response = "Hello json";
}

app.get("/json", (req, res) => {
  res.json({
    message: response
  });
});

```

I walked through the issue here: [Node and Express Json response Error - JavaScript - The freeCodeCamp Forum](https://forum.freecodecamp.org/t/node-and-express-json-response-error/424549/2)

Hope this helps

---

_[View the full topic](https://forum.freecodecamp.org/t/code-works-but-fcc-wont-accept/448538)._
