How to concatenate string replace in JavaScript

1 Answer

0 votes
function concatenate_replace(str) {
    str = str.substring(11).replace("that","THAT").replace("technologies","");
     
    return str;
}
 
let str = "JavaScript is a programming language that is one of the core technologies of the World Wide Web";
 
str = concatenate_replace(str);
 
console.log(str);
 
 
 
 
 
/*
run:
 
is a programming language THAT is one of the core  of the World Wide Web
 
*/

 



answered Dec 9, 2023 by avibootz

Related questions

2 answers 166 views
2 answers 215 views
1 answer 167 views
1 answer 108 views
1 answer 91 views
...