I use Html, Css, Grid, JavaScript.
Design comparison
Solution retrospective
console.log("hello")
i have a problem with...
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'daily')
at days (code.js:49)
this shows me on the console, but i have no trouble with the code. I don't understand what happens.
Community feedback
- @MieszkoKowalikPosted about 3 years ago
Hi I have set a break point in your code and noticed what is the problem. As you are iterating with
for in
loop through the nodeList it also access the properites of NodeList prototype and brakes onNodeList.entries
property. Instead offor in
loop use.forEach
method.Marked as helpful1@Sergio-Ivan-MelgarejoPosted about 3 years ago@MieszkoKowalik I am not clear why the problem, but it was solved by not iterating a nodeList. thank you for your help and time.
0 - @fidellimPosted about 3 years ago
Hi @Sergio-Ivan-Melgarejo,
It looks like there is an error because your study and self-care cards have 0 hours. You might've missed something on your code.
1@Sergio-Ivan-MelgarejoPosted about 3 years ago@fidellim thank you for your coment, but the problem was something with the iterate nodeList.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord