Arrays Section 8/9 Step 2


Below your code from Step 1, reassign condiments to be an array that contains a single string.

Log the result to the console.

I use the join() method and it spits out: Ketchup, Mustard, Soy Sauce, Sriracha, BBQ Sauce

However, it keeps saying I haven’t passed, anyone tell me what I’m doing wrong. I looked at toString() as well, but it should be join() I believe.

let string = condiments.join(’, ');


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