how to write a program that alerts the first 3 letters of the current day in javascript

JavaScript
var currentDay = new Date();
currentDay.toString;
var b = currentDay.toString();
var c = b.slice(0,3);
document.write("Today is " + c);
Source

Also in JavaScript: