Why is this username padder producing weirdly short results?
function padTag(tag, length = 8) {
const cleanTag = tag.trimStart();
return cleanTag.padStart(length - cleanTag.length, "~");
}
Reply with what is broken and how you would fix it.
Why is this username padder producing weirdly short results?
function padTag(tag, length = 8) {
const cleanTag = tag.trimStart();
return cleanTag.padStart(length - cleanTag.length, "~");
}
Reply with what is broken and how you would fix it.
:: Copyright KIRUPA 2026 //--
``` ```