Write a withExponents functional mixin that matches this specificationdescribe(
Write a withExponents functional mixin that matches this specificationdescribe( \”withExponents\”, function(){ var calculator; beforeEach( function(){ calculator = new Calculator(); withExponents.call( calculator ); } ); it( \”returns 2^3\”, function(){ expect( calculator.pow( 2, 3 ) ).to.equal( 8 ); } ); it( \”multiplies 2^3 and 2^4\”, function(){ expect( calculator.multiplyExp( [ 2, 3 ], [ 2, 4 ] ) ).to.equal( 128 ); } ); […]






