Created
June 27, 2025 15:44
-
-
Save lizthrilla/aad9bed5b18703f3d2ef7b592eebcc18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
var lengthOfLastWord = function(s) { | |
return s.trim().split(' ').pop().length | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment