Stuck at 3/9, Qs

https://www.codecademy.com/courses/learn-javascript-arrays/lessons/arrays/exercises/property-access?action=lesson_resume&course_redirect=introduction-to-javascript

iDK why it says:Did you type console.log(newYearsResolutions[2]); in your code?

```

let newYearsResolutions = [‘Super’,“Happpy”,‘Super’]

let listItem = (newYearsResolutions[0])
console.log(newYearsResolutions)
console.log(newYearsResolutions[2])


let newYearsResolutions = ['Super',"Happpy",'Super']




let listItem = (newYearsResolutions[0])
console.log(newYearsResolutions)
console.log(newYearsResolutions[2])
console.log(newYearsResolutions[2]) // missing semi-colon

you miss a semi-colon at the end of the line, it seems to be the problem

2 Likes

hey @stetim94 thanks a lot
how do you guys do debugging ?
you all must start a course on that

For some languages debug tools exist, or you can learn TDD (test driven development), but finding bugs also comes with time and experience.

1 Like

where can i learn TDD BTW ? i am planning to build some website and need the skill
thanks in advance

well, part of building something is find the right tools (including how to do testing), and implement it. Some website is what? front-end? back-end?

for the front-end, a simple googling yielded:
https://www.pluralsight.com/guides/front-end-javascript/introduction-to-test-driven-development-in-javascript

But most testing will be done at back-end i guess.

1 Like

@stetim94 thanks and i try to find more
but if you got any good sites to learn debugging than pls do pm me
:sweat_smile:
cheers

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.