DEV Community

Discussion on: {} - Object Literals in Javascript

 
msabir profile image
imsabir • Edited

So do you mean that method is function and functions are method both are same thing???

If you read article, its mentioned that
If a member is

  • function then it refers as method(), so draw is method

If you want to say that method are those functions which we don't declare, then its definitely correct.

I am not getting what else you want to suggest or convey.

Thread Thread
 
thumbone profile image
Bernd Wechner

I'm confused. Can you read? I wrote:

A method remains a method as far as I know and doesn't change names based on context. Being a subset of functions though, methods are functions, but functions not necessarily methods.

And I was aksing you about:

depending upon where it invooked there technical terminology changes.

To which you responded unhelfully with "Iykyk". I'm curious what terminology changes depending upon where it is invoked here. I'm confident there exists some samples of that, but I can't think of one right now so I was asking you, as you made the claim. And my take is a method is a method is a function that belongs an object, and functions are not all methods?

Not even sure where all that came from. All i did was suggest a more elgenat terser means of writing the draw() method. Take it or leave it. But yhen you responded:

Yes but depending upon where it invooked there technical terminology changes.Thats all. In global level the are similar

which remains a mysterious repsonse to me. Sorry. I'm curious if you have examples of technical terminology changing depending on where it is invoked?

Thread Thread
 
msabir profile image
imsabir

Okay. There is one more geeky who wants to know this. So, I will extend this blog, so you all get the understanding as well. Okay!!