How do I get an array to print on only 1 line?
Doing the coursework by myself, having a real issue with this one, cannot figure out why the first array cargoHold refuses to print on a single line, while the other two, the cabinets ones, print fine. When I submit it, it says the first print is wrong, but I cannot figure out what I'm doing different with the two console.log commands. I even tried deleting the original let line and retyping it, and it's still the same.
thanks for the answer, but unless i'm misunderstanding something, that doesn't seem to be it. I just made the console window full screen and ran it again, and it still prints every index item on a different line. It's almost like I have a \n after each item during the printout. Can't figure out why.
The terminal window is wrapping the console.log print out to fit the width of the window. Before you click the Run button widen the window and you should see a difference.