Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

January 19 2010

codefail

How to create a plain JavaScript object in 4 lines

function param() {
    this.varname = "example";
}
var param = new param();