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.
Code:
function foo()
{}

var x = new foo();
am looking for other indicators/characteristics of class and a method.