Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Javascript code create a FOR LOOP that outputs the numbers 1 3 5 7 9 with line breaks between each number. Display the output

In Javascript code create a FOR LOOP that outputs the numbers 1 3 5 7 9 with line breaks between each number. Display the output with a document.write statement. Also write a function called subtract that accepts two parameters, checks to see which value is larger, subtracts the smaller number from the larger number, and returns the difference. Use a prompt to ask for two numbers. Use the document.write statement to display the results.

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

Discuss effective techniques for reducing stage fright. (L.O. 4)

Answered: 1 week ago

Question

1. Organize and support your main points

Answered: 1 week ago

Question

3. Move smoothly from point to point

Answered: 1 week ago

Question

5. Develop a strong introduction, a crucial part of all speeches

Answered: 1 week ago