R

Ram Sharma • 193.86K Points
Coach

Q. Find the output of below code

Code:
<html>
<head>
<title>JavaScript Example</title>
 
<script type="text/javascript">
function getHeader() {
    return "<h1>Javascript Questions</h1>"
}
</script>

</head>
<body>
<script type="text/javascript">
    document.write(getHeader());
</script>

</body>
</html>
  • (A) Javascript Questions
  • (B) <h1>Javascript Questions</h1>
  • (C) "<h1>Javascript Questions</h1>"
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 123
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics