Please complete the following short answer questions with code snippets as well as paragraphical responses. This assignment should not be an exercise in copy and paste, but an assessment of your comprehension and evaluation of the course materials.
(Note: Please replace the less than/greater than signs in your code with double braces {{ }}, as the less than greater than signs will NOT render in your response. If you are using Microsoft Word to submit your answers, all first letters of your code line MAY be auto capitalized. This is not proper coding for JavaScript. Please keep in mind, for example Do is not the same as do, For is not for, Alert it not alert and Var is not var. Points WILL be deducted for incorrect capitalization of code.)
1. Question Short Answer/Essay
Give the syntax of do..while statement.
2. Question Short Answer/Essay
Explain how an image could be accessed by name and by array number.
3. Question Short Answer/Essay
Write a function that uses substring method of String object to get the 'Scr' part of the string 'JavaScript'. Also use the length property and write the length of the string 'JavaScript' and use the charAt method to get the 'S' from 'JavaScript' and write that.
4. Question Short Answer/Essay
Explain how a Date object's instance is created and used. Also describe any three methods of the Date object.
5. Question Short Answer/Essay
Write a function to output the names and values of a form's fields using the elements property of the form.
6. Question Short Answer/Essay
Give syntax of calling JavaScript functions from radio button(s), checkbox(es) and text objects.
7. Question Short Answer/Essay
With an example to explain how a Cookie's presence could be tested. Do not use JavaScript or any other tags as that would hide the answer.
8. Question Short Answer/Essay
Write briefly on JavaScript security issues.
9. Question Short Answer/Essay
Give an example to target frames using scriptable button object.
10. Question Short Answer/Essay
Explain the special function called a constructor in creating a JavaScript object.