JavaScript Questions and Assignment

profilejpFlute

Question 1

Why is it important to avoid the use of reserved words as you define variables, functions, methods, or identifiers? Do you have any get-arounds to the use of these reserved words that you like to use?

Question 2

Do you find the use of functions beneficial in your coding? Also, describe the anatomy of JavaScript functions.

Question 3

Incorporating JavaScript in HTML, create a web page that has 2 text boxes that users can enter their weight in pounds and the other to enter height in inches and a button with an onclick event that calls a function called calcBMI which performs the BMI calculation.

The expression for BMI is:

Weight*703/(height*height)

    • 10 years ago
    • 40
    Answer(1)

    Purchase the answer to view it

    blurred-text
    • attachment
      discussion.docx
    • attachment
      weightjavascript.rar
    Bids(1)