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)

The escape sequence ‘\\f’ stands for... >>
<< Why so JavaScript and Java have similar name?...