Please help .thanks

Tell us what’s happening:

Your code so far


var ourDecimal = 5.7;

// Only change code below this line
myDecimal = 4.6;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/create-decimal-numbers-with-javascript/

1 Like

Hi @quantran, that’s correct, but take a close look at how you’re declaring the variable myDecimal.

thanks Nicknish,
You said that’s correct, but systems said it was wrong.
i do nt know why,
Can you help me to write a right answer.

Hi @quantran Can you post the latest complete code you ran the tests on, so we can see what the problem might be?

To enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

markdown_Forums

1 Like

Hi @quantran! Sorry, I should have been more clear: the challenge asks to “create a new variable”.

Check to make sure that you’re correctly creating the variable, myDecimal.

Thanks, but i need create Decimal Numbers with JavaScript.

var ourDecimal = 5.7;

// Only change code below this line
4.6;

my answer was wrong, can you help me with right answer. Thanks

The instructions state “Create a variable myDecimal and give it a decimal value with a fractional part (e.g. 5.7).”

I do not see where you created the variable described above and given it a decimal value. All you did was write a decimal value on a line.

Hint: Make sure you declare the variable. If you are not sure how to declare a variable, I suggest going back the following lesson.

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/declare-javascript-variables/

1 Like

Thank you so much. i have done as your advice.