How do I replace all occurrences of a string in JavaScript?

preview_player
Показать описание
Given a string:
s = "Test abc test test abc test test test abc test test abc";

This seems to only remove the first occurrence of abc in the string above:

How do I replace all occurrences of it?
Рекомендации по теме