question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use a Mixin Under Object Oriented Programming FCC Beta

See original GitHub issue

Challenge 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Khezcommented, Sep 28, 2017

@QuincyLarson this issue appears to be fixed.

1reaction
ltegmancommented, Sep 23, 2017

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 a glideMixin 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found