/* Print the following pattern using while loop ***** **** *** ** * * ** *** **** ***** */ function print_pattern(){ let i=1 while(i<=10){ let str="" let j=1 while(j<=6-i){ str+=" *" j++ } j=1 while(j<=i-5){ str+=" *" j++ } i++ console.log(str); } } print_pattern()