In: Computer Science
Language HTML and Javascript
Here is a string: " Hi, my name is John. I am a student at Rutgers University. I am currently taking a Web Class."
1. Change "Rutgers University" to "RUTGERS UNIVERSITY"
2. Replace "Web Class" to "Web Client and Server side Programming"
<html> <body> <script language = "javascript" type = "text/javascript"> var s = "Hi, my name is John. I am a student at Rutgers University. I am currently taking a Web Class."; s = s.replace('Rutgers University', 'RUTGERS UNIVERSITY') s = s.replace('Web Class', 'Web Client and Server side Programming') document.write(s) </script> </body> </html>
************************************************** Thanks for your question. We try our best to help you with detailed answers, But in any case, if you need any modification or have a query/issue with respect to above answer, Please ask that in the comment section. We will surely try to address your query ASAP and resolve the issue.
Please consider providing a thumbs up to this question if it helps you. by Doing that, You will help other students, who are facing similar issue.