New line in Java

The task is pretty simple as I am learning the basics, but I can’t start a new line. I believe it is as simple as pressing ‘enter’, but for some reason I can’t get a new line to begin so I cannot complete the task. I have a feeling the solution will be something embarrassing.

Your code so far

// Setup
var a;
a = 7;
var b;

// Only change code below this line

Your browser information:

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

Challenge: Assigning the Value of One Variable to Another

Link to the challenge:

In javascript and most other languages, you can assign variables to other variables. For example, let’s say you have a score, and the number of lives you have depends on the score.

var score = 2;  //You set the score
var lives ; //you make lives variable but it is empty
lives = score //lives now is 2

Hope this clears it up

Thanks for replying, but maybe I didn’t explain my problem properly. I cannot enter anything below

reset the code or try another browser maybe

Ah it was google chrome. Microsoft Edge worked, thanks.

1 Like

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