Ok, so i’m a student, and my whole class has an assignment to bring in one question for a quiz that we would make ourselves, but I’m having problems asnswering some of the other kids’ questions. These were not all the questions, but I got most on my own. If anyone could help me out, here are some…..
1) Describe the use of { } and [ ] ??
2) Write an HTML for an image tag named “pet” holding an image file named “cat.jpg”. Write a javascript function that will make the image in that tag be “dog.jpg”
3) Write the code to make a call to the function move() every 200 milliseconds. (Hint: this is a single line) how many times per second is this? what would the # be for once every 2 seconds?
4) in the getObject function , what do the IF conditions do (for example, IF (document.getElementById) )?
5) Write a Javascript SWITCh statement that will display alert boxes with the # of days in a month, based on the value of a variable MON holding a name for a month. This requires calling ALERT function with an appropriate string. Assume it is not a leap year.
6) Describe the general use of setInterval?
7) Describe 2 different ways of programming events( setting up event handleing) in Javascript ?