I can try to get my Javascript output. if I write only 1 function I can, But if I would write 2 or more function, how I can get output of function which I want?
JS File:
var time = new Date();
var currenthour = time.getHours();
var welcome;
if(currenthour<=12)
welcome = 'Good Morning';
else if(currenthour >=12 && currenthour <= 17)
welcome = 'Good Afternoon';
else if(currenthour >= 17 && currenthour <= 24)
welcome = 'Good Evening';
document.write(welcome);
HTML File
<!DOCTYPE html>
<html>
<head>
<title>WinMachines</title>
<link rel = "shortcut icon" type= "image/png" href="images\logo.png">
<link rel = "stylesheet" type ="text/css" href= "css/style.css">
</head>
<body background="images/lg.jpg">
<h2></h2>
<script src="js/main.js"></script>
</body>
</html>