I don’t seem to be able to return a substring from the end of a string.
var string1 = “HelloWorld”;
This would actually return “Hello” rather than “World”.
Is there any other way I could do this? I have a work around which involves passing the length of the string and then subtracting the number of characters I want to start from but is there a cleaner way?