Q:

Output is

0

Output is

<script type="text/javascript"> 
var a="GeeksforGeeks"; 
var x=a.lastIndexOf("G"); 
document.write(x); 
</script>

  1. 8
  2. 9
  3. 0
  4. Nothing

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

A.8

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now