Ad
Strings
Data Types
Code
Diff
  • var lastChar = string => string[string.length - 1]
    • function lastChar(string) {
    • return string[string.length - 1];
    • }
    • var lastChar = string => string[string.length - 1]