Question: I'm not sure how to translate this html into java script? I tried combining them and using html but I'm not sure if that's how

 I'm not sure how to translate this html into java script?I tried combining them and using html but I'm not sure if

I'm not sure how to translate this html into java script? I tried combining them and using html but I'm not sure if that's how it's saying that it needs to be formatted?

Write Your Own Script #2 (5 points) This homework problem is a little bit harder. The hw04noJS.html file is the basis for starting this problem. It is like the skeleton in the previous problem. Your goal is to compute the sum of the numbers in the list and insert this sum into the paragraph labelled with an id of 'sum'. Do not change the basic HTML, just add your script in the area indicated. Your script will need a loop to work through the variable number of data items 4. Hints: You will likely find page 200 and pages 204, 205 in Duckett helpful with this problem. You may also find the Number() constructor useful in converting strings to numbers. For example: var st '123'; var num Number(st);//this is 123 stored as a number, and numbers can be summed! // this is 123 stored as a string, and strings cannot be summed! With Chrome, correct results from this HTML page and script might look like: Other book marks Data Sum: 123 Sanity check: This is a harder homework assignment. Put the time you can into it. If your solution does not work when you are out of time, submit what you have AND include a very short readme.txt document in your submission zip file. This document should say that your html does not fully work and briefly state why you think it fails. You will get credit for partial your work, if you provide the readme.txt may also find the Number() constructor useful in converting strings to numbers. For example: st- '123'; var num Number(st); //this is 123 stored as a number, and numbers can be summed! // this is 123 stored as a string, and strings cannot be summed! With Chrome, correct results from this HTML page and script might look like C | file:///F:/aaFRCC-17 : Apps Linux-Virtual x86 Other bookmarks Data Sum: 123

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!