i feel really stupid but what does "Methods are functions that are stored as object properties." mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

i feel really stupid but what does "Methods are functions that are stored as object properties." mean?

i dont understand: 1. Why methods are functions 2. How Methods can be stored 3. How Methods can even be stored as Object properties if Methods/functions didnt have 2 properties

29th Jul 2022, 11:00 PM
Lakarov
Lakarov - avatar
4 Answers
+ 1
Chris Coder so, basically we can say that methods are the same as object but instead of strings, integners or booleans they contain functions?
29th Jul 2022, 11:25 PM
Lakarov
Lakarov - avatar
+ 1
Chris Coder thank you
29th Jul 2022, 11:26 PM
Lakarov
Lakarov - avatar
0
P.S. its 1am, so it can be pretty obvios when i wake up tomorrow, so sorry if this is stupid question
29th Jul 2022, 11:02 PM
Lakarov
Lakarov - avatar