What does this expression return?
'1.5'.replace(/./g, '#')
- '###'
- '1#5'
- '#.#'
- '1.5'
An unescaped
Play Regex ▸
. matches any character, so every character is replaced; use \. for a literal dot.