Write a java script program that would generate all possible combinations for a length of 3-5 characters from a given array
for example if I had an array:
[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z]
the code would print out something like
aaaa,aaab,aaac,aaad...bacd,bace,bacf.. and so on for all possible letter combinations.