-
-
Save fancn21th/2d89d5c9e7d7ccf8bb971b36bed5c15c to your computer and use it in GitHub Desktop.
Revisions
-
gaearon created this gist
May 27, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ class Spiderman { lookOut() { alert('My Spider-Sense is tingling.'); } } let miles = new Spiderman(); miles.lookOut(); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ // class Spiderman { let SpidermanPrototype = { lookOut() { alert('My Spider-Sense is tingling.'); } }; // let miles = new Spiderman(); let miles = { __proto__: SpidermanPrototype }; miles.lookOut();