Interview Preparation Coding Interview Objective
May 09, 2013

What is the output of following JavaScript code?
<script type="text/javascript">
document.write(navigator.appCodeName);
</script>

Choose the correct answer:
A) get code name of the browser of a visitor
B) set code name of the browser of a visitor
C) set code name of the visitor
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