K

Kirti • 10.45K Points
Tutor II

Q. Which is the correct code that returns a complex number that is the complex conjugate of this one?

  • (A) Complex.prototype.conj = function() { return new Complex(this.r, -this.i); };
  • (B) Complex.prototype.conj = function() { return Complex(this.r, -this.i); };
  • (C) Complex.prototype.conj = function() { return (this.r, -this.i); };
  • (D) Complex.prototype.conj = function() { new Complex(this.r, -this.i); };
  • Correct Answer - Option(A)
  • Views: 162
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics