πŸ“Š JavaScript
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Javascript Questions

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
191
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
94%
Success Rate