javascript program to print the given pattern Function to print the given string in respective pattern
function printPattern ( str , len ) { for ( var i = 0 ; i < len ; i ++ ) { for ( var j = 0 ; j < len ; j ++ ) {