Ad
Code
Diff
  • const wordCount = x => x.trim().split` `.length
    • function wordCount(str) {
    • return str.trim().split(" ").length;
    • }
    • const wordCount = x => x.trim().split` `.length