Can anyone tell me if the following example classes are equivalent, with respect to the class properties. One is defined within the constuctor and one outside.
Example 1
function Test(input)
{
this.output = input ;
Test.WELCOME = "Hello ;
}
Example 2
function Test(input)
{
this.output = input ;
}
Test.WELCOME = "Hello ;
I have been using the second type but both seems to work.
Cheers