Q. What is the output of below Javascript code if user keeps the default value of prompt box?
Code:
<script> var question = "Your species?"; var defaultAns = "human"; var out = prompt(question, defaultAns); document.write(out); </script>
β
Correct Answer: (A)
human