Skip to content

Instantly share code, notes, and snippets.

@briandailey
Created March 6, 2014 01:46
Show Gist options
  • Select an option

  • Save briandailey/9380577 to your computer and use it in GitHub Desktop.

Select an option

Save briandailey/9380577 to your computer and use it in GitHub Desktop.
> var s = "this is a string";
undefined
> s.slice(-1);
'g'
> s.substring(-1);
'this is a string'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment