Problem 1: Nothing but the Truth [Elementary]
trueProblem 2: Simple Math [Elementary]
4| (defn uuid [] (str (java.util.UUID/randomUUID))) |
| beforeEach(function() { | |
| this.addMatchers({ | |
| toBeInstanceOf: function(expectedInstance) { | |
| var actual = this.actual; | |
| var notText = this.isNot ? " not" : ""; | |
| this.message = function() { | |
| return "Expected " + actual.constructor.name + notText + " is instance of " + expectedInstance.name; | |
| }; | |
| return actual instanceof expectedInstance; | |
| } |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // paste in your console | |
| speechSynthesis.onvoiceschanged = function() { | |
| var msg = new SpeechSynthesisUtterance(); | |
| msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0]; | |
| msg.text = Object.keys(window).join(' '); | |
| this.speak(msg); | |
| }; |
ec2-54-152-134-146.compute-1.amazonaws.com.