Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java Script Code to do the following tasks: Ask user to enter Integer number n using (prompt) as shown in figure#1. Calculate the

image text in transcribedimage text in transcribed

Write a Java Script Code to do the following tasks: Ask user to enter Integer number n using (prompt) as shown in figure#1. Calculate the squares of numbers from 1 to the n number. Print each number and its square using h3 as shown in figure#2. Check if the entered number less than or equal 0 then show alert to the user as shown in figure#3. Figure# 1 -X Bing e Assignment=3 - Windows Internet Explorer e CAUsers Administrator Desktop Practice5.html File Edit View Favorites Tools Help x Google Favorites Suggested Sites Web Slice Gallery Assignment Search + Share More >> OK Explorer User Prompt Script Prompt Enter the integer 'N'to generate numbers from 1 to N: 6 Cancel Horizontal line h2 text with color green Figure#2 JavaScript to generate squares of 1 to 6 numbers 6 Square of 1 = 1 Square of 2 = 4 Square of 3 = 9 Square of 4 = 16 Square of 5 = 25 h3 text with colors red and blue Square of 6 = 36 The alert message Figure#3 C:\Users\Administrator Desktop\Ahlam Assignment#3.html File Edit View Favorites Tools Help x Google Favorites Suggested Sites Web Slice Gallery Assignment=3 Message from webpage Wrong number. Try again!! OK

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions