Can anyone help me with the following code. What ever entry I make for
variable "year" the function excecuted is "checkleapd ays" and not
"checkdays" . I know from the alert that leap works out correctly, ie 0 on a
leap year and non-zero otherwise, but always the "checkleapd ays" function is
called.
Any advise?
Code
var leap=year % 4
alert(leap)
if (leap=0){
checkleapdays(d ay,month)
}
else{
checkdays(day,m onth)}
variable "year" the function excecuted is "checkleapd ays" and not
"checkdays" . I know from the alert that leap works out correctly, ie 0 on a
leap year and non-zero otherwise, but always the "checkleapd ays" function is
called.
Any advise?
Code
var leap=year % 4
alert(leap)
if (leap=0){
checkleapdays(d ay,month)
}
else{
checkdays(day,m onth)}
Comment