Sobes.tech
Junior — Senior

Function for counting character frequency in a string

livecode

Task condition

It is required to write a function countChars that takes a string, counts how many times each character occurs, and outputs the result in the form count**character.