I need to create a javascript function that replaces all letters of a word to an asterisk * .It should replace the word hello123 to ********. How can this be done ?
*
hello123
********