Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java CPMS Write a Javascript function (in the .js file) named Theone with a parameter named size. For now keep it simple, have it loop

Java CPMS

  1. Write a Javascript function (in the .js file) named Theone with a parameter named size. For now keep it simple, have it loop 'size' number of times and build a string containing the HTML 'My Menu:' plus 'Button ' repeated 'size' number of times and return that string. If size was 3 then 'My Menu: Button Button Button' would be returned. This is not the final version of Theone, each time we add a new item to the page it will be updated.
  2. At the bottom of the web page (in the .html file) use getElementById() and call Theone to display the temporary menu in the proper spot on the web page
  3. Write a Javascript function (in the .js file) named Theone that will build and return the HTML below. This is the HTML for displaying a product for sale on the screen. This is not the final version of Theone, you will change and write new versions when more is added to the web page in future labs. For now, it is a place holder until we are ready to display an item for sale. This HTML does NOT go in the html file, it goes in the Javascript function which returns the html.
    My Product: Product Name: Product ID: Product Description: Shopping Cart Link Bar Product Image: 

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

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

Students also viewed these Databases questions

Question

For sorting a small array (

Answered: 1 week ago