Closed Nalini1998 closed 1 year ago
What will be the result of the code block?
let socialMedia = ['Instagram', 'Facebook', 'Twitter']; for (let socialMediaIndex = 0; socialMediaIndex < socialMedia.length; socialMediaIndex++) { console.log(socialMedia[socialMediaIndex]); }
A. ‘Twitter’ ‘Facebook’ ‘Instagram’
B. ‘Instagram’ ‘Facebook’ ‘Twitter’
C. socialMedia[0] socialMedia[1] socialMedia[2]
D. ‘0: Instagram’ ‘1: Facebook’ ‘2: Twitter’
I chose
What will be the result of the code block?
A. ‘Twitter’ ‘Facebook’ ‘Instagram’
B. ‘Instagram’ ‘Facebook’ ‘Twitter’
C. socialMedia[0] socialMedia[1] socialMedia[2]
D. ‘0: Instagram’ ‘1: Facebook’ ‘2: Twitter’