# Not showing what the code returns

**URL:** <https://forum.freecodecamp.org/t/not-showing-what-the-code-returns/194141>\
**Category:** General\
**Created:** [May 30, 2018, 11:58pm UTC](https://forum.freecodecamp.org/t/not-showing-what-the-code-returns/194141 "2018-05-30T23:58:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ymoon715](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ymoon715/32/94062_2.png) [@ymoon715](https://forum.freecodecamp.org/u/ymoon715)\
**Post date:** [May 30, 2018, 11:58pm UTC](https://forum.freecodecamp.org/t/not-showing-what-the-code-returns/194141/1 "2018-05-30T23:58:11Z")

</div>

before the update, whenever I press run the code, it would tell me if I failed the test, but it would also tell me what my code returns.  
However, after the update, it only tells me what my code should return, but it doesnt tell me what my code returns. It doesnt show anywhere on the screen or the editor.  
The update has made it very confusing for me to learn.  
Also, there is no “hint” section where I can look at the answer to see how to do it on the new lessons.

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [May 31, 2018, 12:08am UTC](https://forum.freecodecamp.org/t/not-showing-what-the-code-returns/194141/2 "2018-05-31T00:08:05Z")

</div>

There is a section under the code editor which is meant to display your output and anything printed to the console. It does not appear to be working perfectly and is only printing test results. Until this is fixed, you can use the console in your browser (hit F12) or you can use a tool like repl.it

---

<div class="post-metadata">

**Author:** ![hlhnicola](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hlhnicola/32/93958_2.png) [@hlhnicola](https://forum.freecodecamp.org/u/hlhnicola)\
**Post date:** [June 2, 2018, 6:12am UTC](https://forum.freecodecamp.org/t/not-showing-what-the-code-returns/194141/3 "2018-06-02T06:12:22Z")

</div>

> [@ArielLeslie](#):
>
> repl.it

Your solution does not work at all, I can only get ‘undefined’ result from browser or repl.it

---

<div class="post-metadata">

**Author:** ![ymoon715](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ymoon715/32/94062_2.png) [@ymoon715](https://forum.freecodecamp.org/u/ymoon715)\
**Post date:** [June 6, 2018, 12:43am UTC](https://forum.freecodecamp.org/t/not-showing-what-the-code-returns/194141/4 "2018-06-06T00:43:20Z")

</div>

Any update on this? its kind of hard to know what I’m doing wrong not knowing what my code returns.

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [June 6, 2018, 12:50am UTC](https://forum.freecodecamp.org/t/not-showing-what-the-code-returns/194141/5 "2018-06-06T00:50:16Z")

</div>

@ymoon715

> [@ArielLeslie](#):
>
> Until this is fixed, you can use the console in your browser (hit F12) or you can use a tool like repl.it

---

<div class="post-metadata">

**Author:** ![ymoon715](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ymoon715/32/94062_2.png) [@ymoon715](https://forum.freecodecamp.org/u/ymoon715)\
**Post date:** [June 12, 2018, 11:02pm UTC](https://forum.freecodecamp.org/t/not-showing-what-the-code-returns/194141/6 "2018-06-12T23:02:57Z")

</div>

I learned to use the console (hitting the F12 button) during most of the lectures.  
However I came across new problems.  
Using this code in the console

```auto
let dog = {
  name: "Spot",
  numLegs: 4,
  sayLegs: function() {return "This dog has " + dog.numLegs + " legs.";}
};

dog.sayLegs();

```

or most of the “Object Oriented Programming” lectures does not work in consoles for me. I pass every test, but in console it keeps coming out as undefined.

Possible solutions in this case?

---

<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:** [January 16, 2021, 5:59pm UTC](https://forum.freecodecamp.org/t/not-showing-what-the-code-returns/194141/8 "2021-01-16T17:59:50Z")

</div>

Closed on January 16, 2021, 5:59pm UTC


