Ok i have been doing a javascript tut, and have implemented some numbers to be calculated, i have verified them first however once i do the calc its self and post it using the command-
document.writeln(secs_per_year);
For a rundown heres my code so far inclduing the calculations.
<head>
<script language="javascript">
<!--
//load up some variables
var secs_per_min = 60;
var mins_per_hour = 60;
var hours_per_day = 24;
var days_per_year = 365;
//Do some calculations
var secs_per_day=secs_per_min * min_per_hour * hours_per_day;
var secs_per_year=secs_per_day * days_per_year;
//-->
</script>
</head>
I have var the numbers and entered the calcs, and the end result gives "undefined secs per year"