actually I am new in programming so I am facing problems in the instructions . I put your solution It is good ty but I faced a new problem the bellow line was wriiten in the instruction
myFirstName should be a string with at least one character in it.
so what should I do now?
Please show us the complete code of what you are trying now so we can help you. Just cut and paste it into your reply. Then we can point you in the right direction.
Jeremy didn’t give you a “solution” but an example. It’s literally meant to NOT solve the task, thus if you put it in, you will still fail.
You have to READ the example, UNDERSTAND the difference to your code and then ADAPT it.
That’s what you should do.
You cannot just copy stuff without understanding it and then hope to progress. Because your understanding IS the progress.
If you don’t understand why the program fails if you randomly put “s;” somewhere, then you have to read again how any of this works.
Do one thing start from the beginning of the JavaScript challenge. REad the challenge carefully and try it again
myName is the variable you declare.
var myName and
“your name” is the value you give to your variable i.e myName
and your complete code will be written as
var myName = “your name”;
hope you get it.
refer to this link