JavaScript :Arrays

I’m not understanding anything in this exercise. Can someone explain me more clearly, please?
https://www.codecademy.com/courses/introduction-to-javascript/lessons/arrays/exercises/arrays?action=resume_content_item
I’m talking about page 11.

2 Likes

So, you make an array of strings
[‘Keep a journal’, ‘Take a falconry class’, ‘Learn to juggle’]

You want to log this into the console using the command console.log();

This command is normally used to debug programs and find syntax errors. However, this time round, we are using it to make sure that our array shows up properly.
To do this we write

console.log(newYearsResolutions);

Now, click run, if you don’t get any syntax errors then move on if you do come back and I will help!

2 Likes

When formatting code, you this ( </> ) button to help make sure its code.

2 Likes

I said I wasn’t understanding the exercise of page 11

2 Likes

If that message was to me, I know you needed help on exercise 11. I was just helping @sgr524 out with a tip.

2 Likes