Difference between revisions of "Sandbox"
From Organic Design wiki
m |
m |
||
| Line 6: | Line 6: | ||
return { | return { | ||
foo: function() { | foo: function() { | ||
| − | + | private = 'secret message'; | |
this.public = 'not secret'; | this.public = 'not secret'; | ||
}, | }, | ||
| Line 15: | Line 15: | ||
} )(); | } )(); | ||
closure.foo(); | closure.foo(); | ||
| − | alert( | + | alert(private); |
| − | |||
| − | |||
}); | }); | ||
</script></html> | </script></html> | ||
Revision as of 15:40, 12 September 2012



