var
val = 10;
function
funMake() {
if
(val < 10) {
document.write(
'Hello World!'
+
'<br />'
);
}
else
(val > 10) {
'Привет Мир!'
{
'To be or not to be?'
var val = 10; function funMake() { if(val < 10) { document.write('Hello World!' + ''); } else if(val > 10) { document.write('Привет Мир!' + ''); } 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();