11
AllenII
7y

Probably the most JavScript line I've written in awhile

Comments
  • 7
    Why not just "new Date().getFullYear()"?
  • 1
    @kpenc i remember trying that before and it giving me some bs. And I'm sleepy; it came to mind and i thought why not? I'll change it in the morning if i remember to when my senses are intact
  • 1
    This is full retard. All of it. Never go full retard 🤣
  • 0
    Well good thing 'all of it' is only one meaningful line 😂. But it's actually pretty easy when you're tired and practically forcing yourself to finish the footer at least
  • 1
    @kpenc
    This is correct. No reason (that I see) why it shouldnt work
  • 1
    @kpenc guess I was just imagining things. The simple way works; maybe my subconscious wanted to be convoluted for kicks.
  • 1
    because (new Date()).getFullYear() was too damn complicated
  • 2
    @Mayhem93 it wasn't JavaScript enough, that's why 😂😂. Don't worry, my brain is back and i changed it this morning. I literally posted it as soon as I wrote it in my drunkedness (the one that comes from exhaustion/boredom)
  • 0
    LOL - I was going to refer you to a rant where I over complicated some JS, then found out you had commented on it!

    https://devrant.io/rants/626023/...

    You weren't lying for sure
  • 0
    @Hedgepig 😂😂😂 I remember that. Ain 't life hilarious sometimes?
Add Comment