fill a string with a certain number of same char code example Example: js fill string with n characters var str = new Array(len + 1).join( character );