Find Jobs
Hire Freelancers

Adding interactivity to web pages using JavaScript

$10-15 USD

Cancelled
Posted over 8 years ago

$10-15 USD

Paid on delivery
1. Open file sum_for_loop.html. Write the code for the prompt method that gets the user entry. Add the code using for loop to sum numbers from 1 through the user’s entry. Display result in an alert box. The result should look similar to the following: The sum of numbers from 1 to 5 is 15 User entry should be a number between 1 and 100. Continue prompting user for number until the correct number (1-100) is entered. Stop displaying the prompt box if user clicks Cancel. 2. Open file sum_while_loop.html. Copy the code from sum_for_loop.html. Change the for loop to sum numbers 1 through entry into while loop. The code should work the same way as the code that uses for loop. 3. Open file sum_do_loop.html. Copy the code from sum_while_loop.html. Change the while loop to sum numbers 1 through entry into do while loop. The code should work the same way as the codes that uses for loop and while loop. 4. Open file factorial.html. Add the code that will calculate factorial of a number entered by user. Example: 5! (five factorial) =1*2*3*4*5 Notes  JavaScript should be added to the head section of each .html file.  Each file should include comments with your name  Add all the files to the .zip folder and submit the .zip folder.
Project ID: 8870987

About the project

9 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
9 freelancers are bidding on average $17 USD for this job
User Avatar
I already have these files completed as per your instructions, thus you simply have to accept my bid in order to receive the completed files.
$10 USD in 0 day
5.0 (3 reviews)
3.2
3.2
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
5.0 (2 reviews)
2.8
2.8
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
5.0 (4 reviews)
2.3
2.3
User Avatar
A proposal has not yet been provided
$17 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
brooklyn, United States
5.0
1
Payment method verified
Member since Sep 14, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.