Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HTML/JAVASCRIPT Use your editor to open the tc_cart txt.html, tc cart_txt.js and tc order txt.js files from the htmllo casel folder. Enter your name and
HTML/JAVASCRIPT
Use your editor to open the tc_cart txt.html, tc cart_txt.js and tc order txt.js files from the htmllo casel folder. Enter your name and the date in the comment section of each file, and save them as tc_cart.html, tc_ cart.js and te_ order.js respectively. Go to the tc cart.html file in your editor. Directly above the closingtag, insert script elements to link the page to the tc order.js and tc cart.is files in that order. Defer the loading and running of both script files until after the page has loaded. Scroll down the file and directly below the hl heading titled "Shopping Cart" insert a div element with the ID cart. 4 Save your changes to the file and go to the tc order.js file in your editor Within the tc_order.js file, you will create arrays containing information on a sample customer order. Create an array named item that will contain the ID numbers of the items purchased by the customer. Add the following four item numbers to the array: 10582, 23015, 41807, and 10041. Create an array named itemDescription containing the following item descriptions: 1975 Green Bay Packers Football (signed), Item 10582 Tom Landry 1955 Football Card (unsigned), Item 23015 1916 Army-Navy Game, Framed Photo (signed), Item 41807 Protective Card Sheets, Item 10041 7 Create an array named itemPrice containing the following item prices: 149.93, 89.98, 334.93, and 22.67
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started