Zamena delova stringa u JavaScript-u

replace
Задание 1

Dat je string '1-2-3-4-5'. Zamenite sve crtice tačkama.