$.plugin.function and scoping in jquery?
<p>im a php guy, right now im learning on making my first plugin</p>

<p>heres what im upto</p>

<pre><code>$.plugin.method({ 
    test: 'helloworld'
});

$.plugin.method({ 
    test: 'another helloworld'
})  
</code></pre>

<p>heres my function or class ? </p>

<pre><code>// class ?
jquery.plugin = function(){
    // variables
    var test = [];

    // function ?
    var method = function(params){
        test[] = params['test']
    }
    console.log(test)
}
</code></pre>

<p>what im expecting</p>

<pre><code>test = ['helloworld','another helloworld']
</code></pre>

<p>can we do that in javascript ? am i getting it right ?</p>

<p>thanks!</p>
