guys i am new to java scripts and these days iam following some tutorials on w3school and lynda.
i have a big problum on classes on Jscripts.
this is my code
<html>
<body>
<script type="text/javascript">
//Write a "Good morning" greeting if
//the time is less than 10
var d=new Date();
var time=d.getHours();
if (time<10)
{
document.write("<b>Good morning</b>");
}
</script>
this code is working fine and if i chang that "var d=new Date();" lines Date() in to "date()" the code is not working .
and again in next line "var time=d.getHours();" getHours() in to "gethours()" then again the code get wrong . so it means the java scripts have its own classes.