Skip to content

Instantly share code, notes, and snippets.

@scmmishra
Created November 10, 2018 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scmmishra/befe29ae428fffea5b6e6f102abcf4be to your computer and use it in GitHub Desktop.
Save scmmishra/befe29ae428fffea5b6e6f102abcf4be to your computer and use it in GitHub Desktop.
function awesomeStuff() { … }
function done() { … }
var Student = function() {
this.name = name;
}
Person.prototype.doWork = function() {
do { awesomeStuff(); } while (!done());
}
var john = new Student(“John”);
john.doWork();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment