79180848

Date: 2024-11-12 11:17:12
Score: 0.5
Natty:
Report link

Both lastday and date list of a month:

    function mliste(y=2024,m=2){//Here 2 means February
        var lastday = new Date(y,m,0).getDate();
        var daylist=[...Array(lastday+1).keys()]; daylist.shift();  
        return daylist; 
        //return lastday; 
    }
    console.log(mliste());

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hakan