Expand my Community achievements bar.

CONDENSE a string?

Avatar

Level 8

Hello

In some other scripts, we have the below syntax to ERASE all the left spaces or zeros & condenses finally, makes it a meaningful string with a good intendation,

SHIFT my_variable LEFT DELETING LEADING spaces/zeros,

do we have a EQUIVALENT code in JavaScript?

Thank you

0 Replies