Question: 1. (4 points) For any small Javascript task, give the syntax for doing it normally and then give an example of how jQuery makes that
1. (4 points) For any small Javascript task, give the syntax for doing it normally and then give an example of how jQuery makes that task easier to code. (Can just be one or two lines of code each)
2. (4 points) What is the difference in Javascript between declaring a variable that will hold an integer and a variable that will hold a string?
3. (4 points) Provide the single line of code that would be required to pop up an alert to the user and make the contents of the alert the 4th element of an array called 'warnings'
4. (4 points) Show the jQuery selector syntax that would select all elements on the page of class 'warnings' and make them hidden.
5. (4 points) Show the jQuery syntax for saving the value of a form element with id 'codon' into a variable called 'codonVal'.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
