JavaScript did 9/11

JavaScript did 9/11

I'm just a student at the very beginning of learning JavaScript, but I thought this was pretty funny.

JS logs simply "9/11" as a date value SPECIFICALLY as 9/11 2001. Everything else defaults to the current year if you don't specify.

Maybe it's just the IDE I'm using or built into JS, I dunno. I just thought it was pretty funny.

I explained what "number 7" in my assignment I was doing wrong, that one was just printing "July". Point still stands.

Is this old news?

Just thought I'd share.

Submitted February 19, 2018 at 12:17PM by Tostecles
via reddit


three value boolean field

three value boolean field

I'm creating a financial database for myself and want to create a field called 'operating asset'. The fields value should be either true or false. The problem is that I don't always know if the value should be true or false, so I want a way to make it temporarily 'unknown'. Is there a best practice of incorporating this field value?

I'm working with firebase as my db

Submitted February 19, 2018 at 11:28AM by kCinvest
via reddit