P i c t u r e , ⠀⠀⠀p a r d o n ?
On Friday, January 13, 2023 at 4:56:58 PM UTC+2, Janis wrote:
Today I was surprised that some old code did not work as I'd have
expected:
function friday_13th (now)
{
return now.getDay()==5 && now.getDate==13;
}
That function returned 'false' and also putting parenthesis around
the (sub-) expressions did not help. I had to use a local variable
to make that work:
function friday_13th (now)
{
var f13 = now.getDay()==5 && now.getDate()==13;
return f13;
}
Can anyone explain that please?
Janis
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)