A
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>
<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 - Option(A)
- Views: 7
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.