58-length-of-last-word

DevGod needs to write a blog entry for this problem!
/**
 * @param {string} s
 * @return {number}
 */
var lengthOfLastWord = function(s) {
    return s.trim().split(" ")[s.trim().split(" ").length-1].length;
};