What will be the output of the following JavaScript function?
A. 123hoidapThe Best
B. 123hoidap The Best
C. Object required error
D. Javascript Error
Code:
<script type="text/javascript">
var name1 = "123hoidap";
function DisplayName () {
var name2 = " The Best";
document.write(name1+name2);
}
</script>
B. 123hoidap The Best
C. Object required error
D. Javascript Error