Get Day in Google App Script

const weekdays = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
weekdays[new Date().getDay()]
Shy Skylark