57

var day = (new Date()).getDate()

Student: "We're programmers. We can't get a date" 🤣

Comments
  • 5
    Shouldn't it be:
    var date = ...

    😀
  • 1
    @CluelessBanana in JS, getDate() returns the day of the month. It makes some sense in English, but not so much in our native language.
  • 0
    I know they used 🤣 but deep down they were 😢
  • 0
    => (err) {
    if (err) {
    console.log('Secure connection to date failed: ' + err);
    }};

    Lmao
  • 0
    @ewpratten I know, but new Class().something just feels wrong to me for some reason
Add Comment