Purchase Solution

JavaScript - Loops

Not what you're looking for?

Ask Custom Question

See the attached files.

I have been working on this all day and am still having trouble with the following:

1) Even should only be reading for the FOR Loop. I tried moving it around and it won't work so I don't know how to fix it to not show on the DO..WHILE Loop and the WHILE Loop.

2) I have to add an Odd next to the odd numbers in ONLY the BACKWARDS FOR Loop.

3) BACKWARDS FOR Loop has to be on a separate page with a link to the Loops.html page.

4) Loops.html page has to have a link to the Backwards Loops.html page

5) Both pages have to be in color

I added what I thought were the codes for all of the above, however, neither one will run. I don't know what I'm doing wrong!!

Purchase this Solution

Solution Summary

A working HTML example that includes all three loop times and determining if the numbers are odd or even.

Solution Preview

See attachments. Problem in your scripts:

1) You had duplicate BODY tags. This tag can only exist once
2) You were missing a "}". Curly braces should be in matched pairs
3) You had a sting indicated with a single-quote at the beginning and a double-quote at the end. Always use ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Javscript Basics

Quiz on basics of javascript programming language.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.