INSTRUCTIONS: Create a table os 2 rows 3 columns; Merge the first row and type in the questions below before attempting to code the answers. |
QUESTIONS: 1. In the first column; Using JavaScript if and else statements only,create a program that displays the following weather statements when the weather value changes. a.If the weather is less than or equal or 20 degrees, the program should display "It is cold". b. If the weather is greater than 20 but less than or 32 degrees, the program should display "It is warm". c. If the weather is greater than degrees, the program should display "It is hot". Use the variable var weather to represent the weather value. 2.In the second column; Using JavaScript while loop and if statements only, Create a program that only displays factors of 9 between 1 and 400. 3.In the third column; Using Javascript while loop and if statements only, create a 16 times table from 1 to 300 and display as follows; 16*1=16 16*2=32 Etc.. |