79107238

Date: 2024-10-20 14:07:29
Score: 1
Natty:
Report link

In my opinion, this is the best way to get the day name

let date = new Date();
let today = date.toLocaleDateString('en-us', {'weekday' : 'long'})
console.log('Today : ', today)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mitesh vaghela