When you make first steps in this topics, some problems can appear. How to solve them successfully is this topic about.
Please Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
I’am trying to fulfil the second test. My variants of answer are:
let hello = “Hello”;
let Hello = “character”;
let the assignment operator = Hello.
But they are wrong.
The prompts of the sistem are: Sorry, your code does not pass. You’re getting there.
You should use the assignment operator =.
// running tests You should use the assignment operator =
. You should assign "Hello"
to your character
variable. // tests completed
Please post a link to the Step
The variable name has to be (remain) character
and you assign it the string "Hello"
So if I asked you to assign the string "John"
to a variable name
it would be.
let name = "John";
I’ve tried different variants, but it doesn’t work at all in practice. For example:
let hello = “Hello”;
let name = “John”;
Sorry, your code does not pass. Hang in there.
You should use the assignment operator =
.
let hello = “Hello”;
let name = “John”;
let hello = “John”
It is truly a riddle of the sphinx how to get through this second step.
This is the starting code.
let character;
Do not change the character
variable, just assign it the string "Hello"
I’ve made the next:
let character;
let character = “Character”;
let hello = “Hello”;
let “Hello” = “Character”
But it is also mistaken.
A variable can only be declared once using the let
keyword.
To reassign a variable, you do not need to use the let
keyword again.
For step 2:
Initialize your
character
variable by assigning it the value"Hello"
during its declaration.
Happy coding
Thank you. I’ll try to correct it.
let character;
character = “Character”;
hello = “Hello”;
“Hello” = “Character” -This variant without ‘let’ isn’t perfect enough, as it is seen: Sorry, your code does not pass. Keep trying.
You should use the assignment operator =.
Do you have a question?
This is the starting code:
let character;
you should still have only 1 line of code total after adding the initialization.
Yes, I’ve got. The most important of them is how to choose the right combination of simbols in order to succeed in step two of the test.
I mean, yes. That is the essence of programming, just as it is with any language. If you speak backwards, or your sentence has the words out of order, no one can understand you.
But I think the main takeaway here is to follow the instructions to the letter and not just try a bunch of things you are not asked to do.
Yes, but understanding the essence of the instructions is also not easy, you must admit, when you encounter this for the first time in your life. I know German, French, Chinese and Vietnamese at a fairly high level, but the programming language is still a zero level for me, although I am trying to develop it.
Its not easy to learn programming, but I definitely think you made it harder on yourself than you had to for this Step
You really, really should do only what the instructions say for almost all the Steps in the learning projects. Adding extra stuff that wasn’t asked for usually breaks the tests.
Yes, I understand you. But I have not yet realized the essence of the dough, its salt and zest, in order to snatch it and follow it without going aside.
Sir, this is a Wendy’s. We don’t do baking here, only coding!
Yes, I know. I use metaphors and metonymies, as well as other tropes in my speech, so please do not be surprised.