CSE :: Javascript - CS
- The four kinds of class members are
- The properties of the objects act like different kinds of class members. They are
- The object whose properties are inherited by all instances of the class, and properties whose values are functions behaving like instance methods of the class, is
- Which are usually variables that are used internally in object methods and also are globally visible variables?
- The class that represents the regular expressions is
- Which is the correct code that returns a complex number that is the complex conjugate of this one?
- How can we make methods available on all objects?
- What is the procedure to add methods to HTMLElement so that they will be inherited by the objects that represent the HTML tags in the current document?
- You can refresh the webpage in JavaScript by using
- The functions provide() and require() of Dojo toolkit and Google’s Closure library are used for
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); }; |