Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

var currentDay = new Date();
currentDay.toString;
var b = currentDay.toString();
var c = b.slice(0,3);
document.write("Today is " + c);
 
PREVIOUS NEXT
Tagged: #write #program #alerts #letters #current #day #javascript
ADD COMMENT
Topic
Name
4+1 =