Tag: Javascript

  • Javascript Scoping

    If you understand what’s going on when this runs, then you understand javascript scoping. var x = 5; alert(x); function foo(){alert(x);var x = 10;alert(x);} foo(); alert(x);

  • Javascript Objects and Hashes

    Employee = { New: function(fname,lname,em) { return { first: fname, last: lname, email: em, displayName: function() { return this.last + ‘, ‘ + this.first }, sig: function() { return this.displayName() + ‘ ‘ + this.email } } } } var tim = Employee.New(‘Tim’, ‘Hoolihan’,’tim@hoolihan.net’) tim.sig()

  • On the Rise, Fall, and Resurgance of Javascript

    Douglas Crockford’s essay on Javascript’s history and resurgance is a great read, if you haven’t already read it. – “Given the process that created JavaScript and made it a de facto standard, we deserve something far worse.”