Question:What is the output of following JavaScript code?  
<script type="text/javascript">   
var text="This is a text";   
alert(text.charAt(text.length-1));
 </script>
 

A t 

B x 

C error 

D none 

+ Answer
+ Report
Total Preview: 938

Copyright © 2024. Powered by Intellect Software Ltd