You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Challenge: Write a function called countChars that takes a string as input and returns an object that contains the count of each character in the string.
For example, if the input string is "Hello, world!", the function should return an object like this:
Challenge: Write a function called countChars that takes a string as input and returns an object that contains the count of each character in the string.
For example, if the input string is
"Hello, world!", the function should return an object like this:Instructions: