Purchase Solution

Webpage - Strings

Not what you're looking for?

Ask Custom Question

Define a function named Classify that takes a string as input and then determines whether the string is a single word (containing no spaces) or a phrase (containing one or more spaces). The function should return a string value, either "word" or "phrase", depending on whether the input string contains any spaces. Once you have developed this function, insert its definition into the HEAD of your string.html page. Then, augment the page by adding a button labeled "Classify" and a text box that will display the string's classification when the button is clicked.

Attachments
Purchase this Solution

Solution Summary

This solution involves writing function.

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.