
Hello, I have a question with the program javascript and in the program I need to create a timer in which it will give me good morning from midnight till noon, good afternoon, noon till 5pm, and good evening from 5pm till midnight. The is I have so far in the webstorm text editor: // hello.js
// This is a client-side JavaScript program that tells the time.
// It is meant to be embeded in a web page named "hello.html".
var today = new Date()
var curHr = today.getHours()
if (curHr < 12) {
console.log('good morning')
} else if (curHr < 18) {
console.log('good afternoon')
} else {
console.log('good evening')
}
function displayHello() {
document.getElementById("displayArea").innerHTML= curHr + " Current time is: " + new Date();
}
Sorry I couldn't upload the attachment for some reason. I appreciate it though.

Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 3 images

- Recreate the following GUI in JavaFX: 2. In JavaFX, implement the functionality of making a popup appear on the screen when the 'Addworkshop' button is pressed. The popup should contain the message: 'Maximum number of workshopsreached.'arrow_forwardWrite an android project that consist of the following: One activity (java file). Two different layouts (XML files). Each layout will have the following: Textview: contains the type of the layout you choose for this layout, for example, ConstraintLayout, table-layout, or LinearLayout (vertically or horizontally)…etc Textview: contains show your full name. Textview: to show your student ID. A button: upon clicking, the button should switch the layout of the activity. For example, the button in layout 1 should change the layout to layout 2, and the button in layout 2 should change the layout to layout 1. Use your own name and ID. The nams is " Alanood " and the ID " 190139479 " .arrow_forwardHi! can ya solve this for me pls? i want it just as same as this GUI output shown in the image.arrow_forward
- Java GUIS. Write a GUI program that accepts 3 itegersv input values, say, x, y, and z, and then verify whether or not x * x + y * y = z * z. Thank youarrow_forwardDaniel has a candy and he wants to give it randomly to one of the kids from a list of 6 names. Help him by writing a javascript that prints the name of a kid randomly to whom Daniel should give the candy. Name of the kids are: "Marry", "Jhon", "Nolin", "Shaun", "Christy", "Paulin".arrow_forwardURGENT Write an applet in Java that creates a purple colored filled rectangle on screen. Inside this rectangle the word "BACK" with Calibri font and size 18, bold face needs to be printed. please put in the screenshot AS WELLarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





