Question 2: Develop a JavaScript program that reads the name and the age of the user using input dialog box and then display one of the following messages using popup message box: If the user is 18 or older, display the message: "Welcome back We missed you." If the user is younger than 18, display the message: "Hello . We are sorry. This website is for grown-ups only." (25 Marks
Question 2: Develop a JavaScript program that reads the name and the age of the user using input dialog box and then display one of the following messages using popup message box: If the user is 18 or older, display the message: "Welcome back We missed you." If the user is younger than 18, display the message: "Hello . We are sorry. This website is for grown-ups only." (25 Marks
Chapter15: Using Javafx And Scene Builder
Section: Chapter Questions
Problem 8PE
Related questions
Question
![Question 2: Develop a JavaScript program that reads the name and the age of the
user using input dialog box and then display one of the following messages using
popup message box:
If the user is 18 or older, display the message:
"Welcome back <user name>We missed you."
If the user is younger than 18, display the message:
"Hello <username>. We are sorry. This website is for grown-ups only."
(2.5 Marks](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F61546d77-2e1d-4535-b549-997f1e256983%2F1ab17c27-c032-47a5-ba68-7674562a671a%2Farp91af_processed.png&w=3840&q=75)
Transcribed Image Text:Question 2: Develop a JavaScript program that reads the name and the age of the
user using input dialog box and then display one of the following messages using
popup message box:
If the user is 18 or older, display the message:
"Welcome back <user name>We missed you."
If the user is younger than 18, display the message:
"Hello <username>. We are sorry. This website is for grown-ups only."
(2.5 Marks
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT