Interview Preparation Coding Interview Objective
May 09, 2013

What is the output of following JavaScript code?

<script type="text/javascript">
x=4+"4";
document.write(x);
</script>

Choose the correct answer:
A) 44
B) 8
C) 4
D) 2
Detailed Explanation

Option A is the right answer

Discussion (0)

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

Share Your Thoughts
Feedback