
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Return String Value of Current Number
The toLocaleString() method returns a string value version of the current number in a format that may vary according to a browser's local settings.
Example
You can try to run the following code to return a string value version −
<html> <head> <title>JavaScript toLocaleString() Method </title> </head> <body> <script> var num = new Number(150.1234); document.write( num.toLocaleString()); </script> </body> </html>
Advertisements