| 1. |
Explain the following with respect to Java script using suitable example. 1. Event handler 2. Objects 3. Operator |
|
Answer» 1. Event Handler - The "event handler" is a command that is used to specify actions in response to an event. Eg: on Load, on Mouseover etc. 2. Objects: JavaScript objects are simply collections of name-value pairs. The "name" part is a JavaScript string, while the value can be any JavaScript value including more objects. Eg: string object, math object etc. Or JavaScript supports programming with objects. Objects are a way of organizing the variables. The different screen elements such as Web pages, forms, text boxes, images, and buttons are treated as objects. 3. Operator: Operators are symbols which perform some operation on values. JavaScript operators can be used to perform various operations such as:
|
|