var len = 55 * 55; var str = ""; while(len--){ str += '\u2588\u2588'; len % 55 === 0 && ( str += "\n"); } console.log( str);