JSFiddle - React, Tailwind, and code Playground JavaScript $(document).ready(function(){ var str = "yolo"; console.log(Array(4).join(str)); })