Q. If we have an object r and want to know if it is a Range object, we can write:

  • (A) r typeof Range
  • (B) r is Range
  • (C) r equals Range
  • (D) r instanceof Range
πŸ’¬ Discuss
βœ… Correct Answer: (D) r instanceof Range
Explanation: The r instanceof Range returns true if r inherits from Range.prototype. The instanceof operatory does not actually check whether r was initialized by the Range constructor.
Explanation by: Mr. Dubey
The r instanceof Range returns true if r inherits from Range.prototype. The instanceof operatory does not actually check whether r was initialized by the Range constructor.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
194
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate