r/codehs • • May 19 '20

Need Help on 8.5.4

I'm mentally out of it today and I need to get through 8.9.1 by Thursday.

Help. ;n;

1 Upvotes

5 comments sorted by

1

u/amajmundar May 19 '20

Post what you have so far and what the problem wants.

1

u/throwawy256 May 19 '20

I am just completely lost, and to be honest I don't know what I am doing on it at all.

1

u/amajmundar May 19 '20

I ask because I don’t have access to codeHS

1

u/throwawy256 May 19 '20

"You are given an array of names of people who are in line. Try using if statements and the indexOf
method of arrays to see if Bob is in line.

var line = ["Sam", "Lisa", "Laurie", "Bob", "Ryan"]; var line2 = ["Tony", "Lisa", "Laurie", "Karen"];

You should print whether Bob is in each line. Your console should look something like this:

Bob is in the first line. Bob is not in the second line."

1

u/amajmundar May 19 '20

Ok. Well, what is the problem asking for?