πŸ“Š JavaScript
Q. What will be the output of following JavaScript code?
Code:
<script type="text/javascript"> 
var a="Tanmay"; 
var x=a.lastIndexOf("a"); 
document.write(x); 
</script>
  • (A) 4
  • (B) 5
  • (C) 1
  • (D) 2
πŸ’¬ Discuss
βœ… Correct Answer: (A) 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
225
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
99%
Success Rate