# Where is the output? 🫤

**URL:** <https://forum.freecodecamp.org/t/where-is-the-output/600720>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [March 25, 2023, 11:23pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720 "2023-03-25T23:23:49Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mimiciku](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mimiciku/32/299642_2.png) [@mimiciku](https://forum.freecodecamp.org/u/mimiciku)\
**Post date:** [March 25, 2023, 11:23pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/1 "2023-03-25T23:23:49Z")

</div>

This is the original instruction:

 ![Screenshot (10)](https://global.discourse-cdn.com/freecodecamp/original/4X/4/2/0/4207fd12bdc300aa9f8e308c1e7bf76061f5a649.png)

I pretended to run it , and I got the following error:

 ![Screenshot (11)](https://global.discourse-cdn.com/freecodecamp/original/4X/4/1/f/41ff724c57a84b50478f6736d3e6c85abcb37214.png)

I went ahead and follow the original instruction and input the values for a, b, and c, but there is no output as the previous screenshot said there would be. There’s no output that shows me `a=6 b=15, etc...` It’s all the same. Suffice to say that I am coding, but I am not seeing anything. If there’s no visual output, how would I see what I am doing. I was expecting to see a result at the end. Not just “Ok, you pass the challenge.” I am rather disappointed thank you 😔 😞

 ![Screenshot (12)](https://global.discourse-cdn.com/freecodecamp/original/4X/7/1/c/71c7fe50728fd083dc344932d78665b672956955.png)

Why am I not seeing an output in JavaScript like in HTML? Or why there isn’t a “preview” screen like in html?

Please explain.

Thank you

````auto

```javascript
// Only change code below this line
var a=5;
var b=10;
var c ="I am a";
// Only change code above this line

a = a + 1+6;
b = b + 5;
c = c + " String!";

````

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.51`

**Challenge:** Basic JavaScript - Understanding Uninitialized Variables

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/understanding-uninitialized-variables)**
>
> Learn to Code — For Free

```auto

```

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [March 25, 2023, 11:29pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/2 "2023-03-25T23:29:42Z")

</div>

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/debugging/use-the-javascript-console-to-check-the-value-of-a-variable)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![marcusparsons](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marcusparsons/32/411768_2.png) [@marcusparsons](https://forum.freecodecamp.org/u/marcusparsons)\
**Post date:** [March 25, 2023, 11:31pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/3 "2023-03-25T23:31:31Z")

</div>

You can add a `console.log` to see your output if you want:

```auto
// Only change code below this line
var a = 5;
var b = 10;
var c = "I am a";
// Only change code above this line

a = a + 1;
b = b + 5;
c = c + " String!";

console.log(a);
console.log(b);
console.log(c);

```

It doesn’t affect the test cases to output to the console.

---

<div class="post-metadata">

**Author:** ![mimiciku](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mimiciku/32/299642_2.png) [@mimiciku](https://forum.freecodecamp.org/u/mimiciku)\
**Post date:** [March 25, 2023, 11:31pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/4 "2023-03-25T23:31:34Z")

</div>

What??? There’s nothing here! You didn’t say anything. lol

---

<div class="post-metadata">

**Author:** ![marcusparsons](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marcusparsons/32/411768_2.png) [@marcusparsons](https://forum.freecodecamp.org/u/marcusparsons)\
**Post date:** [March 25, 2023, 11:32pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/5 "2023-03-25T23:32:14Z")

</div>

He created a link to the challenge since you had only posted screenshots and didn’t reference the challenge itself.

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [March 25, 2023, 11:38pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/6 "2023-03-25T23:38:27Z")

</div>

It looks like @JeremyLT gave you a link to the challenge that talks about `console.log` which is what @marcusparsons’ explanation is about.

If you want to see the output of your variables, you can use `console.log`.  
Different programming languages will use different syntax to print to the console.  
For example, in Python, it would be `print()`

> [@mimiciku](#):
>
> Why am I not seeing an output in JavaScript like in HTML? Or why there isn’t a “preview” screen like in html?

One key difference between HTML and CSS versus JavaScript is that HTML and CSS are markup languages that focus on styling and content. When you make a change in HTML or CSS you will see those changes right away

For JavaScript, the changes you are making are interactive so in order to see the change, you would need to either test it out on the web page or print out the results of those variables in the console.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![mimiciku](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mimiciku/32/299642_2.png) [@mimiciku](https://forum.freecodecamp.org/u/mimiciku)\
**Post date:** [March 25, 2023, 11:38pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/7 "2023-03-25T23:38:54Z")

</div>

Thank you for your response.

But a console is not the same as the “preview screen.” In JS, I think that I have a screen on the right that is where I am supposed to type the code. Is that the “console” that you’re talking about? Otherwise, I don’t have the option to have a “preview screen” or “console” as you said. There’s no button for that.

---

<div class="post-metadata">

**Author:** ![marcusparsons](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marcusparsons/32/411768_2.png) [@marcusparsons](https://forum.freecodecamp.org/u/marcusparsons)\
**Post date:** [March 25, 2023, 11:42pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/8 "2023-03-25T23:42:21Z")

</div>

@jwilkins.oboe has explained it very succinctly, and I think that the only proper reply is to ask you to read hers. 🙂

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [March 25, 2023, 11:43pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/9 "2023-03-25T23:43:43Z")

</div>

As a sidenote, I think the new JS curriculum will help you “see” the JavaScript changes because the new curriculum is focused on learning by building projects.

When you make changes to your javascript code, you will be building a project at the same time and test out the functionality while you are building the project.

In the beginning, it can be hard to put the pieces to together and fully understand how javascript is supposed to work on a web page.  
But once you start building projects and see your changes affect the interactivity on the web page, then it will start to make more sense.

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [March 25, 2023, 11:45pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/10 "2023-03-25T23:45:03Z")

</div>

JavaScript is a different type of programming language than a HTML and CSS. You use console.log to view variables. The output shows up in the lower right, as the lesson I linked talks about.

---

<div class="post-metadata">

**Author:** ![mimiciku](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mimiciku/32/299642_2.png) [@mimiciku](https://forum.freecodecamp.org/u/mimiciku)\
**Post date:** [March 25, 2023, 11:51pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/11 "2023-03-25T23:51:11Z")

</div>

> [@jwilkins.oboe](#):
>
> As a sidenote, I think the new JS curriculum will help you “see” the JavaScript changes because the new curriculum is focused on learning by building projects.

Hi ![](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/20/179497_2.png)[jwilkins.oboe](https://forum.freecodecamp.org/t/where-is-the-output/600720/9)

Thank you for your clear explanation. By the way, where can I find the new JS that you mentioned?

> see your changes affect the interactivity on the web page, then it will…make more sense.

My sentiment exactly!!!

Thank you

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [March 25, 2023, 11:59pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/12 "2023-03-25T23:59:59Z")

</div>

The team is currently building out the new curriculum. Currently there is no set date for the beta release but the team has been working really hard to build it out.

In the mean time, one of the things that helped me when I was first learning back in 2020 was building small projects.  
These projects were super small, like 10 lines of javascript code small and a little bit of HTML and CSS.  
But it really helped me understand how all of the pieces fit together.  
Then I kept building projects with increased complexity.

I would advise you to finish the first section of the JS curriculum because that includes all of the basic building blocks. Then continue with the other sections of the JS curriculum and start building small little projects.

Here are some small project ideas to get you started

> **[40 JavaScript Projects for Beginners – Easy Ideas to Get Started Coding JS](https://www.freecodecamp.org/news/javascript-projects-for-beginners/)**
>
> The best way to learn a new programming language is to build projects. I have created a list of 40 beginner friendly project tutorials in Vanilla JavaScript, React, and TypeScript. My advice for tutorials would be to watch the video, build the...

JavaScript 30 is really popular. I would suggest doing that after you have finished the other sections of the JS curriculum

> **[JavaScript 30](https://javascript30.com/)**
>
> Build 30 things with vanilla JS in 30 days with 30 tutorials

Frontend mentor is really popular too.

> **[Frontend Mentor | Challenges](https://www.frontendmentor.io/challenges?difficulties=1)**
>
> Browse through the front-end coding challenges on Frontend Mentor. Find interesting projects to practice your HTML, CSS and JavaScript

I would suggest starting with their newbie level to practice HTML, CSS and JS projects

Hope that helps!

---

<div class="post-metadata">

**Author:** ![mimiciku](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mimiciku/32/299642_2.png) [@mimiciku](https://forum.freecodecamp.org/u/mimiciku)\
**Post date:** [March 26, 2023, 3:06am UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/13 "2023-03-26T03:06:01Z")

</div>

Thank you very much for all this information. I really appreciate it. I am on lesson 7 of the JS challenges. Soon I will begin your small project suggestions because I am dying to see how all of them work together.

Thank you.

Ciao 👏

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [September 24, 2023, 3:07pm UTC](https://forum.freecodecamp.org/t/where-is-the-output/600720/14 "2023-09-24T15:07:00Z")

</div>

Closed on September 24, 2023, 3:07pm UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
