dimanche 29 mars 2015

Replace all the characters of a string except first and last using javascript

I need to replace all the charecters of a given string with "*" except first and last charecters.


if i have a sring like "hello" the output should be "h***o"


How should i do this using javaScript/jquery


Aucun commentaire:

Enregistrer un commentaire