repeat()
← Back to Module string
Repeat a string
repeat(s, times)
s
times
string
repeat("ha", 5) ' Returns "hahahahaha"
Documentation version: 1.1.02. Updated on: 2 February 2026.Dinfio is designed and written by Muhammad Faruq Nuruddinsyah. Copyright © 2014-2026. All rights reserved.