Lists: Putting it together

I have gotten the lists: Putting it together in java script correct

// Build a list
comicStrip = [‘Codey sees the trail’, ‘Codey starts the hike’, ‘Codey is halfway’, ‘Codey reaches the finish’]
// select the 4th item from the list
comicStrip[3]
// and save it to the variable selection
selection = comicStrip[3]

And what’s exactly the problem? Make it work on javascript?

Heya!

Great job completing it, just one small bit of feedback:

selection = comicStrip[3]

Unless selection has been defined elewhere first you need use let/const when defining it :slight_smile: .

1 Like

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