Search
Complete the JavaScript function to replace all but the last number of characters with the specified mask character.
Hint: Use the regular expression /./g to match any character in the string.
/./g
For example: