This forum is now read-only. Please use our new forums! Go to forums

0 points
over 11 years

HELP! Meet arrays is confusing me!

Could someone please provide a solution and explanation to this question as I have no other ideas of what I’m doing wrong…

Answer 5047518cece9170002027181

1 vote

Permalink

arrays is a variable having the data inside [ ]… As what you can see on the example.. The exercise is for you to make is an array named junk having 4 bits of data which is 2 strings and 2 Numbers.. And print it using console.log.. What I did is.. var junk = [“chelz”, “joe”, 25, 34]; { console.log(junk); }

Hope this help..

points
over 11 years

1 comments

Thank you!!! Great help!

Answer 505c3ce7407bb2000202e2f2

0 votes

Permalink

why is this code not working?

var junk = [Monty, Python,12,24]; console.log(junk);

points
Submitted by Marana Douglas
over 11 years

Answer 5062c75af3cefb000207e21b

0 votes

Permalink

as you can see, your codes lack signs.. look at the example given above.. if you use names don’t forget to put this signs “” except for numbers.. and don’t forget to put this signs {} when you are using console.log so that your codes will be visible.. try this one..

var junk = [“Monty”, “Python”, 12, 24]; { console.log(junk); }

points
over 11 years