Quiz 4

 

1. Write an HTML snippet that will display a form containing a button that says "Cat" and one that says "Clear."When the user clicks the "Cat" button, the browser should change the contents to the text area box to contain the string "Cat" and when the "Clear" button is clicked the text box should change to the empty string.

 

2. Write a simple function that takes one argument, named num, and returns three times the value in num plus 17.