Class vs. method in JavaScript

what are the characteristics that indicate that this Function is a class, and same thing for methods?
for example if an object was created from a function using new keyword this indicate that this function is a class.

function foo()

var x = new foo();

am looking for other indicators/characteristics of class and a method.

JavaScript doesn’t use the class/method techniques that lower languages have. Instead, prototyping and closure can be used to simulate those aspects.

You’ll get a pretty good run-down of the techniques at this [url=“”]private members page.

Just because those aspects can be simulated though, doesn’t mean that they are the best way in JavaScript to achieve the end result.