replace multiple spaces with single space javascript
string = string.replace(/\s\s+/g, ' ');
replace multiple spaces with single space javascript
string = string.replace(/\s\s+/g, ' ');
how to leave a space when concatenating in javascript
console.log('UR string'+ " " +'Other String')
use " " to get a space
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();
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us