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