This forum is now read-only. Please use our new forums! Go to forums
Someone plz give me the answer to 3.5
Plzzzzzz help me i’ve tried everything
Answer 5081fadad7c5a80200001e5b
1 vote
So I don’t know what code you’ve been trying. But the syntax to create an array is like this:
var arrayName = ["string", 1, true];
the syntax to print a whole array is like this:
console.log(arrayName);
Answer 50898e68a0e96b0200002cbe
1 vote
var junk = [“coke”, “boy”, 2, 2]; var count = junk.length;
var isLost = function (n) { for (i = 0; i < count; i++) { if ( n === junk[i]) { return true; } } return false; };
if ( isLost(12) ) { console.log(‘12 is a lost number’); }
if ( isLost(16) ) { console.log(‘16 is a lost number’); } console.log(junk);
Answer 50b1b31612323a7fec00178f
0 votes
Just to get pass this exercise it doesnt have to be complicated i just did a simple
var junk = ["Poop", "McPoop", 18, 24]
And thats all i had to do :)
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
:D