how to write a program that displays a message “It’s Fun day” if it's Saturday or Sunday today in javascript
JavaScript
var currentDate = new Date();
currentDate.toString;
var b = currentDate.toString();
var c = b.slice(0,3);
if (c === "Sat"){
document.write("It's Fun Day")
}else if(c === "Sun"){
document.write("It's Fun Day")
}else if(c === "Mon"){
document.write()
}else if(c === "Tue"){
document.write()
}else if(c === "Wed"){
document.write()
}else if(c === "Thr"){
document.write()
}else if(c === "Fri"){
document.write()
}
Also in JavaScript:
- Title
- How disable button jquery
- Category
- JavaScript
- Title
- how do i backspace from javascript calculator
- Category
- JavaScript
- Title
- assign this value or if it is undefined this other value javascript
- Category
- JavaScript
- Title
- javascript Arranging Coins
- Category
- JavaScript
- Title
- how to add text to h2 with jquery
- Category
- JavaScript
- Title
- javascript array concat spread operator
- Category
- JavaScript
- Title
- create a json object in javascript
- Category
- JavaScript
- Title
- capitalize first letter javascript
- Category
- JavaScript
- Title
- get number of creeps screeps
- Category
- JavaScript
- Title
- difference between foreach and map in js
- Category
- JavaScript
- Title
- how to change input value in javascript using class
- Category
- JavaScript
- Title
- javascript anagram check
- Category
- JavaScript
- Title
- how to push values in array
- Category
- JavaScript
- Title
- how to make a dictionary javascript
- Category
- JavaScript
- Title
- button not clicking for random jokes in javascript
- Category
- JavaScript
- Title
- javascript canvas beziercurveto
- Category
- JavaScript
- Title
- hooks in react
- Category
- JavaScript
- Title
- javacript getHTTPURL
- Category
- JavaScript
- Title
- how pass data from body in koa js
- Category
- JavaScript
- Title
- charat javascript
- Category
- JavaScript
- Title
- how to make an async function
- Category
- JavaScript
- Title
- how to make @click in router-link vuejs
- Category
- JavaScript
- Title
- How to insert an item into an array at a specific index JavaScript
- Category
- JavaScript
- Title
- change dxform label angular
- Category
- JavaScript
- Title
- if object is array javascript
- Category
- JavaScript
- Title
- array unique values javascript
- Category
- JavaScript
- Title
- angular check if control has required validator
- Category
- JavaScript
- Title
- background url reactjs
- Category
- JavaScript
- Title
- how to use a fixed time zone in nodejs
- Category
- JavaScript
- Title
- how to check if variable is array in js
- Category
- JavaScript
- Title
- how to return the max and min of an array in javascript
- Category
- JavaScript
- Title
- dynamic forms in react
- Category
- JavaScript
- Title
- javascript class click event
- Category
- JavaScript
- Title
- form validation in reactstrap
- Category
- JavaScript
- Title
- function redirect javascript
- Category
- JavaScript
- Title
- int to string javascript
- Category
- JavaScript
- Title
- angular 6 reload current page
- Category
- JavaScript
- Title
- fill array with values javascript
- Category
- JavaScript
- Title
- how to use if else inside jsx in react
- Category
- JavaScript
- Title
- immediate invoke function js
- Category
- JavaScript
- Title
- how to iterate through an object in javascript
- Category
- JavaScript
- Title
- array methods in javascript
- Category
- JavaScript
- Title
- call function with id javascript
- Category
- JavaScript
- Title
- How to send JSON Web Token (JWT Token) as header with Postman and golang
- Category
- JavaScript
- Title
- javascript checkbox checked
- Category
- JavaScript
- Title
- create a form and submit it dynamically jquery
- Category
- JavaScript
- Title
- generate unique id javascript
- Category
- JavaScript
- Title
- check date clash js
- Category
- JavaScript
- Title
- access to static file nodejs
- Category
- JavaScript
- Title
- getrect javascript
- Category
- JavaScript
- Title
- javascript array sort
- Category
- JavaScript
- Title
- firestore update array
- Category
- JavaScript
- Title
- error sending empty object express
- Category
- JavaScript
- Title
- javascript async fetch file html
- Category
- JavaScript
- Title
- get keys of object js
- Category
- JavaScript
- Title
- if clicked outside of div jquery
- Category
- JavaScript
- Title
- compare string by several strings js
- Category
- JavaScript
- Title
- check if string is datestring javascript
- Category
- JavaScript
- Title
- copy to clipboard javascript
- Category
- JavaScript
- Title
- conditional rendering in react
- Category
- JavaScript
- Title
- define two variables in one line javascript
- Category
- JavaScript
- Title
- add a slash to string in javascript
- Category
- JavaScript
- Title
- convert object to json javascript
- Category
- JavaScript
- Title
- how to display date in javascript
- Category
- JavaScript
- Title
- get window height javascript
- Category
- JavaScript
- Title
- javascript array contains object
- Category
- JavaScript
- Title
- greater than or equal to javascript
- Category
- JavaScript
- Title
- check items in array javascript
- Category
- JavaScript
- Title
- how to remove item from array javascript
- Category
- JavaScript
- Title
- fetch api based on id nodejs and mongodb
- Category
- JavaScript
- Title
- (not in PATH env variable)
- Category
- JavaScript
- Title
- find intersection between two object arrays javascript
- Category
- JavaScript
- Title
- google maps javascript api
- Category
- JavaScript
- Title
- how to remove spaces from strings javascript
- Category
- JavaScript
- Title
- * http://sizzlejs.com/
- Category
- JavaScript
- Title
- javascript canvas gamma correction
- Category
- JavaScript
- Title
- code to launch browser using javascript
- Category
- JavaScript
- Title
- How to get row index and cellindex together in javascript
- Category
- JavaScript
- Title
- how to paste in input field react native
- Category
- JavaScript
- Title
- is javascript good
- Category
- JavaScript
- Title
- cb=gapi.loaded_0:190 Uncaught TypeError: $.ajax is not a function
- Category
- JavaScript
- Title
- div background image chnage uisng js
- Category
- JavaScript
- Title
- enter event in jquery
- Category
- JavaScript
- Title
- javascript array push method
- Category
- JavaScript
- Title
- chartjs lineTension
- Category
- JavaScript
- Title
- edje js not pre compile for node 12 version
- Category
- JavaScript
- Title
- how to write a program that shows a random number between 1 and 100 in your browser
- Category
- JavaScript
- Title
- discord.js check for permissions
- Category
- JavaScript
- Title
- iterate object javascript
- Category
- JavaScript
- Title
- angular flex layout
- Category
- JavaScript
- Title
- codemirror get object from textarea
- Category
- JavaScript
- Title
- how to get value in array object value using for loop in javascript
- Category
- JavaScript
- Title
- deploy angular app on google app engine
- Category
- JavaScript
- Title
- javascript array pop
- Category
- JavaScript
- Title
- express js redirect to url
- Category
- JavaScript
- Title
- dockerfile for nodejs
- Category
- JavaScript
- Title
- how to get the status of other urls in ajax
- Category
- JavaScript
- Title
- anime.js morph svg d value
- Category
- JavaScript
- Title
- get selected option value
- Category
- JavaScript
- Title
- how to print a array js
- Category
- JavaScript