Basic JavaScript - Declare JavaScript Variables

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

Your code so far

var myName = "John Doe";
var myName = "John Doe";

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36

Challenge: Basic JavaScript - Declare JavaScript Variables

Link to the challenge:

I am having a issue with this topic I am giving a correct input and I can’t go for next stage

You don’t want to give myName a value and you definitely don’t want to declare it twice.

Sometimes solutions are too simple. We don’t believe the solution that jumps out at us.

Look at the introduction to the challenge:

Look at the ourName example above if you get stuck.

and above:

" We tell JavaScript to create or declare a variable by putting the keyword var in front of it, like so:"

You need to take those hints seriously

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