Google News
logo
MongoDB - Quiz(MCQ)
________ returns the JavaScript representation in the form of a string literal.
A)
toString()
B)
String()
C)
toStringJava()
D)
None of the above

Correct Answer :   toString()


Explanation : In previous versions, toString() returns the hexadecimal string representation, which as of version 2.2 can be retrieved by the str property.

Advertisement