This forum is now read-only. Please use our new forums! Go to forums
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
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..
Answer 505c3ce7407bb2000202e2f2
why is this code not working?
var junk = [Monty, Python,12,24]; console.log(junk);
Answer 5062c75af3cefb000207e21b
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); }
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
Thank you!!! Great help!