Created
July 27, 2023 15:44
-
-
Save suhailgupta03/5d2afe51eecf690ae42cadcf50ec934f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var students = [ | |
"Sudarshan", // 0th index | |
"Anish", // 1st index | |
"Chinmay", // 2nd index | |
"Rahul", // 3rd index | |
"Tushar", | |
"Syed", | |
"Sudarshan", | |
"Subhrojoti" | |
]; | |
// students[0] -> "Sudarshan" | |
// students[1] -> "Anish" | |
// students[2] -> "Chinmay" | |
var length = students.length; | |
for(let i = 0; i < length; i++) { | |
var studentName = students[i]; | |
console.log(studentName[1]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment