I am starting with the original code of the challenge! and I did not change a code. so what part of the code is ES5 assignment syntax???
the one that uses dot notation to assign the values to a variable
you mean this part?
const lowToday = LOCAL_FORECAST.today.low;
const highToday = LOCAL_FORECAST.today.high;
yes, that part there
my code:
const LOCAL_FORECAST = {
yesterday: { low: 61, high: 75 },
today: { low: 64, high: 77 },
tomorrow: { low: 68, high: 80 }
};
again, please post all the code you have in the editor, and please, format it
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
and my code error:You should use destructuring to create the lowToday
variable. You should use destructuring to create the highToday
variable. lowToday
should be equal to 64
and highToday
should be equal to 77
.
are you creating the required variables?
look at the code I gave to you and the code is the whole code.
so why have you deleted the variables and the comments?
you may need to reset your code again
but It Sayed: You should remove the ES5 assignment syntax.
but the variables need to exist to have values, you need to use ES6 destructuring
now I forgot the es6 to what was a es6?
the es6 is the one you are doing, destructuring is a es6 feature
ok! @im59138 !!! I understood
it is the same!?! I get the same error can you debug my code for me?
my code is:
const LOCAL_FORECAST = {
yesterday: { low: 61, high: 75 },
today: { low: 64, high: 77 },
tomorrow: { low: 68, high: 80 }
};
// Only change code below this line
console.log(lowToday)
console.log(highToday)
um it is late here so goodnight and let’s work tomorrow @im59138 ! good night!
you are not defining the variables anywhere; they don’t have a value
you have to change how the value is assigned to the variables
do you mean that I should reset my code first?