Interview Preparation Coding Interview Objective
May 09, 2013

What is the output of bellow JavaScript code?
<script type="text/javascript">
var cst="CHADHA SOFTWARE TECHNOLOGIES";
alert(cst.charAt(cst.length-1));
</script>

Choose the correct answer:
A) s
B) c
C) T
D) o
Detailed Explanation

Option A is the right Answer.

Discussion (0)

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

Share Your Thoughts
Feedback