Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

i need two solutions for this question if u can please Write a Java Script Code to do the following tasks: Ask user to enter

image text in transcribed

image text in transcribed

i need two solutions for this question if u can please

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 Bing e Assignment=3 - Windows Internet Explorer e C:\Users\Administrator Desktop Practice#5.html File Edit View Favorites Tools Help x Google Sie Favorites e Suggested Sites Web Slice Gallery Assignment 3 Search - Share More >> Explorer User Prompt Script Prompt Enter the integer 'N'to generate numbers from 1 to N: OK Cancel Horizontal line h2 text with color green Figure#2 JavaScript to generate squares of 1 to 6 numbers 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 with AI-Powered 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

Students also viewed these Databases questions