Hi,
I've just started to learn JavaScript, being a beginner. In order to qualify myself for the proper boot camp, I must do a kind of online course first and pass some challenges.
I've got a bit stack in a very simple situation.
My problem is:
Create a new variable called stringLength. Use the length property to write an expression that evaluates to the length of the variable provided and assign it to the variable you just created.
I've been given:
And I've tried to solve it like that:
Getting the answer: Check whether you are correctly using the .length property
Maybe for an experience coder this is something very simple but I'm only at the beginning of this road trying to learn.
Many thanks for any help I can get!
I've just started to learn JavaScript, being a beginner. In order to qualify myself for the proper boot camp, I must do a kind of online course first and pass some challenges.
I've got a bit stack in a very simple situation.
My problem is:
Create a new variable called stringLength. Use the length property to write an expression that evaluates to the length of the variable provided and assign it to the variable you just created.
I've been given:
JavaScript:
const word = 'N****coders'
And I've tried to solve it like that:
JavaScript:
const word = 'N****coders'
const stringLenght = string.lenght
Maybe for an experience coder this is something very simple but I'm only at the beginning of this road trying to learn.
Many thanks for any help I can get!