+ 2
In JavaScript, what is the difference between a method and a property?
3 Respuestas
+ 8
var obj={
x:5,
dance:function(){} }
properties are always strings,objects or numbers..
methods are functions
+ 3
Also note that Methods and Properties are general programming concepts and not specific to Javascript or different in Javascript.