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.



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
Get step-by-step solutions from verified subject matter experts
