Use a Mixin Under Object Oriented Programming FCC Beta
See original GitHub issueChallenge use-a-mixin-to-add-common-behavior-between-unrelated-objects has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
The condition to solve the challenge requires the mixin to be named “Mixing”, but it was said that the name should be “Mixin”. Just a typo in the assert probably.
let bird = { name: “Donald”, numLegs: 2 };
let boat = { name: “Warrior”, type: “race-boat” };
// Add your code below this line let glideMixing = function(obj){ obj.glide = function(){ return"I’m soaring!"; }; };
glideMixing(bird); glideMixing(boat);
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Use a Mixin to Add Common Behavior Between ... - YouTube
In this object oriented programming tutorial we use a mixin to add common behavior between unrelated objects. This video constitutes one ...
Read more >Mixin-based Inheritance Abstract 1 Introduction - Gilad Bracha
components to a shared parent. The mixin composition operator, ?, is the Beta inher-. itance operator, but is used in a slightly more...
Read more >Mixin-based Inheritance - UT Computer Science
This model shows that Beta and Smalltalk have inverted in- heritance hierarchies: a Smalltalk subclass refers to its parent using super just as...
Read more >ITRS on Friday, July 18th, 2014 - EasyChair
In this talk, I will introduce the approach to higher-order model checking based on intersection types, present connections with game semantics, and discuss ......
Read more >LESS: Secrets of the Ampersand - SLaks.Blog
Using a prefix with the & allows the mixin to emit rules that are not nested in the location where the mixin was...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@QuincyLarson this issue appears to be fixed.
This comment was left in the Contributor chat room, but not in this issue: the problem is not with the test (the first test does check that a function named
glideMixin
exists) but that if you declared aglideMixin
in a previous test run and then change the name to something different that should not pass the tests will still pass. It appears variables from old test runs are being leftover and influencing current test runs.