var
val =
true
;
function
funMake() {
if
(val) {
document.write(
'Hello World!'
+
'<br />'
);
}
else
{
'To be or not to be?'
var val = true; function funMake() { if(val) { document.write('Hello World!' + ''); } else { document.write('To be or not to be?' + ''); } }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
funMake();