Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
I was trying to figure out which is the best way to convert a number into a string uisng JavaScript?

1 Answer

0 votes
by (26.7k points)

Basically, depends upon the execution time speed ''+num is faster. You can use it like this:

var intel = 45;

var intellipaat = '' + intel;

I hope this will help.

Want to become a Java expert? join Java Training now!!

Related questions

0 votes
1 answer
asked Feb 14, 2021 in Java by dante07 (13.1k points)
0 votes
0 answers
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...