mozilla

Compare Revisions

Function.prototype.bind()

Change Revisions

Revision 5066:

Revision 5066 by desandro on

Revision 5067:

Revision 5067 by desandro on

Title:
bind
bind
Slug:
JavaScript/Reference/Global_Objects/Function/bind
JavaScript/Reference/Global_Objects/Function/bind
Tags:
javascript, Functions, "JavaScript 1.8.5", ECMAScript5
javascript, Functions, "JavaScript 1.8.5", ECMAScript5
Content:

Revision 5066
Revision 5067
n170function LateBloomer(){}n170function LateBloomer() {
171  this.petalCount = Math.ceil( Math.random() * 12 ) + 1;
172}
t178  console.log('I am a beautiful flower!');t180  console.log('I am a beautiful flower with ' + this.petalCount +
 > ' petals!');

Back to History