so this looks like JavaScript being tested with Jasmine? I don't have Jasmine, but I can guess from looking at it what the Calculator class is supposed to do.

Hmm..let me try, am little confused. How about this one ?If i were to write a class for below specs : describe( "ScientificCalculator", function(){ var calculator; beforeEach( function(){ calculator = new ScientificCalculator(); } ); it( "extends Calculator", function(){ expect( calculator ).to.be.instanceOf( Calculator ); expect( calculator ).to.be.instanceOf( ScientificCalculator ); } ); it( "returns the sine of PI / 2", function(){ expect( calculator.sin( Math.PI / 2 ) ).to.equal( 1 ); } ); it( "returns the cosine of PI", function(){ expect( calculator.cos( Math.PI ) ).to.equal( -1 ); } ); it( "returns the tangent of 0", function(){ expect( calculator.tan( 0 ) ).to.equal( 0 ); } ); it( "returns the logarithm of 1", function(){ expect( calculator.log( 1 ) ).to.equal( 0 ); } ); } );

Hi, just following up, were you able to use my solution? Please feel free to post any additional questions, comments or concerns you may have regarding this issue.

If you're not yet satisfied with the result, please let me know what is missing. I will do my best to make it right for you.

Otherwise, please don't forget to rate my service - I don't get paid for my work until your rating is received.

Hi, just following up, were you able to use my solution? Please feel free to post any additional questions, comments or concerns you may have regarding this issue.

If you're not yet satisfied with the result, please let me know what is missing. I will do my best to make it right for you.

Otherwise, please don't forget to rate my service - I don't get paid for my work until your rating is received.

Hi, just following up, were you able to use my solution? Please feel free to post any additional questions, comments or concerns you may have regarding this issue.

If you're not yet satisfied with the result, please let me know what is missing. I will do my best to make it right for you.

Otherwise, please don't forget to rate my service - I don't get paid for my work until your rating is received.