Advertisement
Guest User

Untitled

a guest
Sep 15th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Create a temporary object so we can get an instance
  2. // of the course and
  3. var temp = function() {}
  4. temp.prototype = Course.prototype;
  5.  
  6. // The CS "prototype chain" now has an
  7. CS.prototype = new temp();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement