We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71d2474 commit 8cc0590Copy full SHA for 8cc0590
1 file changed
javascript/5_string-programs/countWords.js
@@ -1,6 +1,6 @@
1
// 1. Count Words of a String
2
3
-// 1. Using split() Method
+// 1. Using split() Method
4
5
{
6
const count = (s) => s.trim().split(/\s+/).length;
0 commit comments