Hi I,m having troble


#1

// Practice array!

var junkData = ["Eddie Murphy", 49, "peanuts", 89, "put", 90 "peas", 90];
console.log("junkData")

What is the problem?


#2

What makes you say that it's wrong?

(generally a good idea to never use the words "work/wrong" and instead use a description of what you mean, the purpose here is to describe your problem, and those words avoid doing exactly that)


#3

It does not work when I press save and submit.


#4

Can you tell me the code please?


#5

If there's something preventing you from figuring this out, then you should not yet move on. There's something here that you need to learn first.
Right now what seems to be holding you back is that you aren't identifying what's different from what's supposed to happen. You need to decide what you want to happened and why what you have written would have that effect. Perhaps you need to start with less code and add on very small pieces at a time so that you can tell when you're adding something incorrectly.


#6

don't put quotes between junkData I'd say.


#7

Don't use quotes to call a function. Remove quotes of junkData in console.log.


#8

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