What will be output of below Javascript function?

<script type="text/javascript">
var str = new String("Vishal");
alert(str.charAt(0));
</script>

 Posted by vishalneeraj-24503 on 12/12/2013 | Category: JavaScript Interview questions | Views: 7070 | Points: 40
Select from following answers:
  1. V
  2. Vishal
  3. ishal
  4. None of these.
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response