3. property access

how to log item at position [3] to console

var bucketList = [‘pen’ , 'car ’ , ‘dog’];
var listItem = bucketList[0];
var listItem = bucketList [2];

Can’t, no such position in your array

Thats what is required. But still it shows an error. It says "Did you set listItem to the first item in your bucketList array, using [3]? "

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