Ad
  • Default User Avatar

    You could add tests for Infinity in the javascript version:

    
      Test.expect(powerOf4(Infinity) === false);
      Test.expect(powerOf4(-Infinity) === false);