Answers for "how to add space between the character of string in js"

0

how to put space in between characters javascript

"hello".split('').join(' '); // "h e l l o"
Posted by: Guest on July-31-2021
1

js string insert space

document.getElementById('iban').addEventListener('input', function (e) {
  e.target.value = e.target.value.replace(/[^dA-Z]/g, '').replace(/(.{4})/g, '$1 ').trim();
});
Posted by: Guest on October-09-2020

Code answers related to "how to add space between the character of string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language