it must be "new"ed. Oct 18, 2009 • Fred Yang The following is constructor which prevent not using "new" keyword function User(first, last){ if ( !(this instanceof arguments.callee) ) return new User(first, last); this.name = first + " " + last; } Please enable JavaScript to view the comments powered by Disqus.