Programming Languages JavaScript Objective
Mar 04, 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) 4
C) 8
D) Error output
Detailed Explanation

Option A is the right answer.

Discussion (0)

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

Share Your Thoughts
Feedback