Why will this Js function return undefined? : <p>My goal is to pass in a variable that will apply to many processes within the function, but some rule im unaware of must be coming into play. It will return my passed variable, but will not return the full object including my variable as a parent...</p>

<pre><code>var test = {number:1,color:'red'};
function Make(data){
    console.log(data)        //returns test
    console.log(test.number) //returns 1
    console.log(data,test.number) //returns test 1
    console.log(data.number) //returns undefined
};
Make("test");
</code></pre>
