Method


#1

I don't get the whole bit about method in javascript. I have passed most exercise on it but I don't get it.
Can someone explain it in bit simple English pls?

What is Method?

What does "this" do?

It would help if you include the two questions too


#2

Method is a function inside a object

Isn't this explained in introduction to objects 1? for example here, it serves as a placeholder.


#3

i think a method is a function that you can use in a object.
so that instead of just having a person.age = 23 you can make it so that that value can change.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.