Javascript string formatting, short question -


How can I use javascript to add a number (any number between 0-100), its After an underscore, before the variable value?

Example:

  2000 12_2000 / / / a number of my choice is added, after which an underscore hello becomes 12_hello  

The number of this case (12 in this case) is chosen by me continuously!

Thanks

i + '_' + x Where i is the number and x is an arbitrary value.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -