In this problem we are asking for implementation in JavaScript of a function, g, that returns the frequency of alphabet letters in a given string ignoring upper/lower case issues.
Use whatever programming language you are most comfortable with, although we prefer to see standard scripting languages used.
The return format is best demonstrated in an example. Suppose you are given the String “Hello there! Apple!" The function g shall return the following structure:
{
a:1,
b:0,
c:0,
d:0,
e:4,
f:0,
g:0,
h:2,
i:0,
j:0,
k:0,
l:3,
m:0,
n:0,
o:1,
p:2,
q:0,
r:1,
s:0,
t:1,
u:0,
v:0,
w:0,
x:0,
y:0,
z:0
}
node solution.js