Question

In: Computer Science

Language HTML and Javascript Here is a string: " Hi, my name is John. I am...

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"

Solutions

Expert Solution

<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.


Related Solutions

Hi, I am doing up my homework on mathematics and here are some questions. I want...
Hi, I am doing up my homework on mathematics and here are some questions. I want to cross-reference my answers thank you. Decide if the statements below are True or False. Please include some rough workings for me to understand: (1) Mr. Tan borrowed $500,000 from Bank XYZ at 5% annual interest to be repaid monthly over 20 years. The amount that he pays back to XYZ each month is between $3000 to $3500. (2) Continuing from (1): after 15...
Hi I am working on my chemistry homework about acids and bases and I am confused...
Hi I am working on my chemistry homework about acids and bases and I am confused on this question from a lab. We used grape juice and cranberry juice and we had to put HCl and NaOH in the test tube full of juice. 1. Referring back to procedure 1 of the experiment, which of the two juices is more useful as a general pH indicator and why? I think it is grape juice but I just don't know what...
Language Javascript and HTML Google Treemap Chart is not displaying information and I don't know why....
Language Javascript and HTML Google Treemap Chart is not displaying information and I don't know why. Index.html <html> <head> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['treemap']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['State', 'Region', 'Housing', 'Utilities'], ['Global', null, 0, 0], ['AK', 'Southeast', 150, 167], ['AL', 'Southeast', 79, 99], ['AR', 'Southeast', 83, 92], ['AZ', 'Southwest', 110, 95], ['CA', 'West', 184, 107], ['CO)', 'West', 103, 94], ['CT', 'Northeast', 161, 122], ['DC', 'Northeast', 248, 103], ['DE', 'Northeast', 101, 122], ['FL', 'Southeast',...
Hi I am getting error in implement some test case using Java. I am adding my...
Hi I am getting error in implement some test case using Java. I am adding my code and relevant files here, and the failed test. Please let me know where my problem is occuring and fix my code. Thanks! I will upvote. Implement a class to perform windowing of a Hounsfield value Implement the class described by this API. A partial implementation is provided for you in the eclipse project; however, unlike the previous class, very little work has been...
IN PROGRAMMING LANGUAGE C -I am trying to alphbetize a string in descending or to EX...
IN PROGRAMMING LANGUAGE C -I am trying to alphbetize a string in descending or to EX INPUT: B C D A OUTPUT: D C B A #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int main(int argc, char*argv[]) {         int MAX = 100000;         int i =0;         int k =0;         int j =0;         char array[MAX];         char split[] = " ,.-!?()0123456789";         int n = 0;         char second[MAX];         printf("Please enter in a String: ");...
Hi, I found this in the book balanced introduction to computer science,Javascript language, ⌈Log2(N)⌉ determine the...
Hi, I found this in the book balanced introduction to computer science,Javascript language, ⌈Log2(N)⌉ determine the number of checks it takes for binary search to find an item. I also saw this ⌈Log2(N)⌉+1 to find the number of checks, what is the difference between these 2, which one should I use?
Hi, I am working on an assignment in C-Programming language dealing with LInked lists, in the...
Hi, I am working on an assignment in C-Programming language dealing with LInked lists, in the code there is instructions on where to write the code. I do not know how to write Linked Lists. Has to be in the C-language, Any help is greatly appreciated   //agelink.c //maintains list of agents //uses linked list #include <stdio.h> #include <stdlib.h> #define TRUE 1 void listall(void); void newname(void); void delink(void); void memexit(void); void wfile(void); /********************************************************************* this is the structure to hold a agent...
javaScript html receives an entry of a character string in a text box, when a button...
javaScript html receives an entry of a character string in a text box, when a button is clicked, the count of vowels in the string stored in the textbox is displayed. The html file contains one function: vowelcount(). vowelcount(): returns the number of uppercase and lowercase English language vowel letter that occurs in the string entry in the textbox. //html: <!--    YOUR ID    YOUR NAME --> <html> <head> <script> function vowelcount() {        /* YOUR CODE HERE...
My name is Donna. I am a college student studying to be an English teacher. I...
My name is Donna. I am a college student studying to be an English teacher. I dislike inflation, my degree is costing me more than i had anticipated. Good thing that I am a senior, tuition when I started three years ago was 20% less. Maybe I should get my masters but that would put me unto more debt. Why do we have so much inflation? I work part time as a server and have a low fixed rate loan...
Hi! I am having a difficult time thinking of a topic for my research paper if...
Hi! I am having a difficult time thinking of a topic for my research paper if anyone is able to help out that would be appreciated! One challenge is defining a specific topic. For example, the topic "Federal Reserve" is far too broad. Here are considerations and suggestions for you in defining your research topic: 1. Start by review the major topics of the course. See how the textbook is organized, and flip through the various chapters to identify potential...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT