Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a webpage with a JavaScript section in the area. Create four variables: string1, 2, 3, & 4. Assign a whole number to string1, assign
Create a webpage with a JavaScript section in the
area. Create four variables: string1, 2, 3, & 4. Assign a whole number to string1, assign a decimal number to string2, assign a prompt method to get a user's input for their name to string3, and assign a prompt method to get a whole number from the user for string4.In the
section: Create a JavaScript script that prints out four lines. One should say "Hello name" (name from string3). Second line should add string1 and string2. Third line should display string1 + string2 + string3. Fourth line should then add string 3 to the multiple of string 1 x string2: Each should display something like: "string1 + string2 = 130".Make a second webpage and connect it to the first or "index" page. Write a JavaScript block in the
that creates four variables using the prompt method, one of each: Integer, decimal, Boolean, and String values. Write them to the HTML document. Make a return link to the home page.The pages can be plain or pretty if you wish. If you use images, make sure there is an image folder to contain them.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started