Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

The basic purpose of the toLocaleString() is to _________

a) return a localised object representation
b) return a parsed string
c) return a local time in the string format
d) return a localized string representation of the object

Answer: d
Explanation: toLocaleString is a predefined function in javascript which is used to return a localized string representation of the object. For example the date.toLocaleString() is an inbuilt function in JavaScript which is used to convert a date and time to a string.

Join The Discussion