Created
September 25, 2024 12:38
-
-
Save alifma/1e2937639afdb2bc12583e4ac1c4787d to your computer and use it in GitHub Desktop.
Revisions
-
alifma created this gist
Sep 25, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ function charFrequency(str) { // implementasi } console.log(charFrequency("hello world")); // output: { h: 1, e: 1, l: 3, o: 2, ' ': 1, w: 1, r: 1, d: 1 }