Programming Languages JavaScript Objective
Mar 04, 2013

What is the output of following JavaScript code?

<script type="text/javascript">

function x()

{

document.write(2+5+"8");

}

</script>

Choose the correct answer:
A) 258
B) Error
C) 78
D) 7
Detailed Explanation

Option C is the right answer.

Discussion (0)

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

Share Your Thoughts
Feedback