Answers for "concat with space js"

2

replace multiple spaces with single space javascript

string = string.replace(/\s\s+/g, ' ');
Posted by: Guest on July-19-2020
1

how to leave a space when concatenating in javascript

console.log('UR string'+ " " +'Other String')

use " " to get a space
Posted by: Guest on August-23-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 "Javascript"

Browse Popular Code Answers by Language