Erstatning av deler av streng i JavaScript

replace
Задание 1

Gitt en streng '1-2-3-4-5'. Bytt ut alle bindestreker med punktum.