Substituindo partes de strings em JavaScript

replace
Задание 1

Dada a string '1-2-3-4-5'. Substitua todos os hífens por pontos.