python to javascript
Posted
by Ayaz Alavi
on Stack Overflow
See other posts from Stack Overflow
or by Ayaz Alavi
Published on 2010-05-18T22:13:42Z
Indexed on
2010/05/18
22:20 UTC
Read the original article
Hit count: 373
python
|JavaScript
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, '')
© Stack Overflow or respective owner