Programming Languages JavaScript Objective
Mar 04, 2013

What is the output of following JavaScript code?

<script type="text/javascript">

var cst="CHADHA SOFTWARE TECHNOLOGIES"; 

alert(cst.charAt(cst.length-1));

</script>

Choose the correct answer:
A) P
B) E
C) S
D) Error
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback