Question: Html and javascript Your program should perform the following tasks: Output the H1 header Set of Numbers Create and display a random min and max

Html and javascript

Your program should perform the following tasks:

  • Output the H1 header "Set of Numbers"
    • Create and display a random min and max where min0 and max <100
      • Display the sequence of numbers from min to max, inclusive
      • For each even number display it as red, for odd numbers display it as green
  • Then display the H2 header "colors"
    • Create 1->20 random numbers in the range 0->10000 and display each in its own span.
      • Each span should have a thin solid black border
      • should have margins
      • If the number is prime then display the number with an HotPink css background color and the word - Prime
      • If the number is divisible by 3 it should be displayed with a gray background
      • if the number is divisible by 5 it should have a coral background color
      • Otherwise display the color with a white background.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!