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
You can add a console.log to see your output if you want:
// 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!";
It doesn’t affect the test cases to output to the console.
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()
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.
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.
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.
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
Frontend mentor is really popular too.
I would suggest starting with their newbie level to practice HTML, CSS and JS projects
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.