Tuesday, 6 June 2017

trim certain number of characters from end of javascript string

What I would like to accomplish is too strip the last certain number of characters from the end of a string in javascript. Lets say I had a string with 'testing this out' and I wanted to strip the last 5 characters from it. How do I do it?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...