Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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.

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions