NIELIT O Level Exam

The basic purpose of the toLocaleString() is to _________

The basic purpose of the toLocaleString() is to _________

toLocaleString() का मूल उद्देश्य _________ है

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 ऑब्जेक्ट का लोकलाइजेशन स्ट्रिंग रिप्रजेंटेशन को रिटर्न करे




Correct Answer is :

D. return a localized string representation of the object



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.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad