Question: Hello, please provide code for the assignment circled in red, and the rest of the pictures just show some helpful information for the assignment. Please

Hello, please provide code for the assignment circled in red, and the rest of the pictures just show some helpful information for the assignment. Please code it in JAVASCRIPT with HTML to display it. Thank you.

Hello, please provide code for the assignment circled in red, and the

rest of the pictures just show some helpful information for the assignment.

Please code it in JAVASCRIPT with HTML to display it. Thank you.

toUpperCase, toLowerCase --converts to either upper or lower case letters var text! "Ahoy World!" var text2 textl.toUpperCase(); //text2 is text1 converted to upper var text2 = text1.toLowerCase(); //text2 is now text! converted to lower charAt(4) - would return the fifth character in a string (numbering begins at 0) var str "Ahoy world!" var charResult str.charAt (0); alert (charResult); // The result will be: "A indexOf("a") - would return the POSITION in the string of the first occurrence of lowercase a, numbering begins at 0. Returns a-1 if no instances are found var strWhar be the treasure?" var posstr.indexof("treasure; alert(pos); // The result will be: 12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!