# Node and Express Json response Error

**URL:** <https://forum.freecodecamp.org/t/node-and-express-json-response-error/424549>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [October 7, 2020, 5:27pm UTC](https://forum.freecodecamp.org/t/node-and-express-json-response-error/424549 "2020-10-07T17:27:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 7, 2020, 8:58pm UTC](https://forum.freecodecamp.org/t/node-and-express-json-response-error/424549/2 "2020-10-07T20:58:52Z")

</div>

Welcome, hasnatali.

When do you expect this code to run?

```auto
 let response = '' ;
 console.log(process.env.MESSAGE_STYLE);
 
 if(process.env.MESSAGE_STYLE==='uppercase'){

  // response = "Hello json".toUpperCase();
  response = "Hello json".toUpperCase();
   
 }
 else{
   response = "Hello json";
 }
 console.log('Bihy',{"style":response})

```

* * *

Also, I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](http://www.freecodecamp.com/forum/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (’).

---

_[View the full topic](https://forum.freecodecamp.org/t/node-and-express-json-response-error/424549)._
