Ответ:
function replace_string(string, pattern){
var st_pt = pattern.join('');
return string.replace(new RegExp(`[${st_pt}]`, 'gi'), '')
}
document.write(replace_string('Hello Vasiliy', ['l', 'a']))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
function replace_string(string, pattern){
var st_pt = pattern.join('');
return string.replace(new RegExp(`[${st_pt}]`, 'gi'), '')
}
document.write(replace_string('Hello Vasiliy', ['l', 'a']))