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

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -