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>
β
Correct Answer: (A)
Javascript Questions