string - Ruby: Print something x amount of times -



string - Ruby: Print something x amount of times -

i want homecoming string 'x' amount of times. current code

return str + str + str + str

what do create like

return 4 * str

you close...

return str * 4

ruby string return append

Comments

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -