Horje
email address hide characters javascript Code Example
email address hide characters javascript
function hideemail(target) {
  var email = target //anas.behhari@gmail.com
  var hiddenEmail = "";
  for (i = 0; i < email.length; i++) {
    if (i > 2 && i< email.indexOf("@") ) {
      hiddenEmail += "*";
    } else {
      hiddenEmail += email[i];
    }
  }
  console.log(hiddenEmail) //an.*******@gmail.com
}
email address hide characters javascript
function hideemail(target) {
  var email = target //anas.behhari@gmail.com
  var hiddenEmail = "";
  for (i = 0; i < email.length; i++) {
    if (i > 2 && i< email.indexOf("@") ) {
      hiddenEmail += "*";
    } else {
      hiddenEmail += email[i];
    }
  }
  console.log(hiddenEmail) //an.*******@gmail.com
}




Javascript

Related
find the second largest number in an array javascript Code Example find the second largest number in an array javascript Code Example
image and video lightbox react Code Example image and video lightbox react Code Example
upload preview image js Code Example upload preview image js Code Example
Progress bar loader angular Code Example Progress bar loader angular Code Example
How to extract params from received link in react native firebase dynamiclink? Code Example How to extract params from received link in react native firebase dynamiclink? Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7