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>
<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
+ AnswerA
+ Report