Skip to content

Commit

Permalink
update code.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesparkes authored Jan 25, 2017
1 parent 2dc4f9a commit e6de3ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lesson-4/look-at-a-polyfill/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ if (!String.prototype.startsWith) {
};
}


/* Sample usage */
/* sample usage */
'Udacity'.startsWith('Udac'); // returns `true`
'Udacity'.startsWith('Udac', 2); // returns `false`
'Udacity'.startsWith('ES6'); // returns `false`

0 comments on commit e6de3ce

Please sign in to comment.