I need to find out whats wrong with this script but I'm having a tough time. I think I could do it from scratch but that's not the assignment. It's supposed to show the date. I think its missing a function or 2.
var today = new Date();
var wkDay = today.getDay();
var mon = today.getMonth();
var day = today.getDate();
var fyear = today.getFullYear();
var out =weekDays[wkDay] + ", " + monthNames[mon] + " " + day +" " + fyear;