Basic JavaScript - Comment Your JavaScript Code

Tell us what’s happening:
Describe your issue in detail here.

Your code so farHow can I run my first java script code .

var num1 = 5;   //this is an in-line comment.
var num2 = 6;
var addition = var num1 + var num2;
/*this is a

assdedd
fffgg
ffff
hhh

multi-line 
comment*/


Your browser information:

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

Challenge: Basic JavaScript - Comment Your JavaScript Code

Link to the challenge:

On the bottom -left hand corner of your screen there should be a button ‘run this test’ which you should click on.

Welcome to our community!

Delete the second and the third code lines. They are not commented out.

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