String script gone wrong :/

Tell us what’s happening:
bro this is very broken the thing is telling me that i need 1 or more characters but idk what that means can u help me
Your code so far


var myName = "myFirstName";
var myName = "myLastName";

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13505.111.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.152 Safari/537.36.

Challenge: Declare String Variables

Link to the challenge:

Read carefully what it is asking you to do: it asks you to create two variables one called…? and the other called…? (hint, it doesn’t ask you to create two variables both called myName)

nvm it diddnt work what do i do now

1 Like

i think they are both supposed to be called yourname BUTT that dont work

Nope, read the instructions carefully. It is completely unambiguous, it definitely does not ask you to do that

alr it says to assign them to the values of my first and last name but how

No it doesn’t, they are the names of the variables!

i did it thx for helping