How do I convert this Python punctuation-stripping function to JavaScript?

javascript, python

Solution

function strip_punctuation(s) {
    return s.replace(/[,.":;!%$]/g, "");
}

Problem

Please can anyone translate this python code into javascript. ``` # def strip_punctuation(s): # for c in ',.":;!%$': # while s.find(c) is not -1: # s.replace(c, '') ```

Original source