Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use our HTML template to create a file named as your name (for example if your name is john the file name would be john.html).

Use our HTML template to create a file named as your name (for example if your name is john the file name would be john.html). Make sure to update the meta data (title, author, description) accordingly. This HTML file should contain an h1 heading element that includes your full name and student number.

Create an empty element with an id of your name. This element should be used to display your output from JavaScript.

Create a JavaScript file with your studentid.js and link it to your HTML file created above. Perform following exercise in your JavaScript file:

a. Declare an empty array named integers

b. Write a loop that iterates 50 times. In each iteration of the loop, generate a new random number between 0-50 and insert the value in your array (created above).

c. After exiting your loop, display content of your array in an h2 element inside the section element created in your HTML document, where array elements are separated by comma

d. Display the content of your array (in an h2 element), where elements of your array are separated by asterisk *

e. Loop through your array and count the instances of number 13 and 29 found in your array. As you are looping through the array, replace each instance of number 4 by your first name and the number 7 by your last name (or * if you do not have a last name).

f. After exiting the loop, display result in an h3 element, as shown in example below:

Number 13 was found 2 times and number 29 was repeated 4 times in this array Display content of your array (separated by comma) in a new h2 element in the section element in your HTML document.

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

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions