Q:

Write a JavaScript program to removes non-printable ASCII characters from a given string

0

Write a JavaScript program to removes non-printable ASCII characters from a given string. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

const remove_non_ASCII = str => str.replace(/[^\x20-\x7E]/g, '');
console.log(remove_non_ASCII('äÄçÇéÉêw3resouröceÖÐþúÚ'));

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now