Web technologies Questions | JavaScript Course Quiz 1 | Question 12
What will be the output of the following code snippet
let gfg = ”GeeksforGeeks”
console.log(gfg.charAt(4))
(A) o
(B) f
(C) k
(D) s
Answer: (D)
Explanation: String javascript follow 0 based indexing so character at 4th index (0 based indexing )is ‘s’
Quiz of this Question
Please comment below if you find anything wrong in the above post


