Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

If you have a function f and an object o, you can define a method named m of o with ________

a) o.m=m.f;
b) o.m=f;
c) o=f.m;
d) o=f;

Answer: b
Explanation: A method is nothing more than a JavaScript function that is stored in a property of an object. If you have a function f and an object o, you can define a method named m of o with the following line: o.m = f;

Join The Discussion