0
<!DOCTYPE html>
<html>
<head>
<title>date</title>
<p id="todaysdate"â„</p>
<script type="text/javascript">
function date()
{
var str=" ";
var d=new Array("sunday","monday","tuesday","wednesday","thrusday","friday","saturday");
var m=new Array("jan","feb","mar","apr","may","june","july","aug","sep","oct","nov","dec");
var now=new Date();
str+="the time is:"+d[now.getDay()]+","+now.getDate()+" "+m[now.getMonth()]+""+now.getFullYear()+" "+now.getHours()+":"+now .getMinutes()+":"+now.getSeconds(); document.getElementById("todaysdate").innerHTML=str;
}
setInterval(date,1000);
</script>
</head>
<body>
date
</body>
</html>
Use that you are missing Line 5 and spelling of now