The String object is used to manipulate a stored piece of text.
Return the length of a string Example
How to use the length property to find the length of a string.
Style strings Example
How to style strings.
The indexOf() method Example
How to use the indexOf() method to return the position of the first occurrence of a specified string value in a string.
The match() method Example
How to use the match() method to search for a specified string value in a string and return the string value if there it is found.
Replace characters in a string: replace() Example
How to use the replace() method to replace some characters with some other characters in a string.
A string is merely a word or combination of words, including numbers, grouped (strung) together. Any type of character can be stored in a string.
String Variables and Literals
Strings are simply any series of characters between quotes. Form element values are stored as strings, pathnames to files and images are referred to as strings, and almost all method parameters are strings.
Nesting Quotes And The Escape Character
String Concatenation and String Operators
Strings To Numbers: Data Type Conversion
When attempting to add number data types to numbers stored as strings…
Strings And The Write Method
While we're on the subject of strings, I'd like to talk about a method which is synonymous with strings. The write() method belongs to the document object and is used...
Finding A Character's Position In A String Using charAt()
Each character in a string is assigned an index position. Strings, like arrays, begin counting characters at position zero…
Finding a Character's Index Position Using indexOf() and lastIndexOf()
indexOf() returns the index position of any character you specify as the parameter…
Extracting A New String From An Existing String Using the substring() Method
substring() method allows you to extract a new string from an existing string starting at the specified index and continuing though (but not including) the ending index…
Substituting Substring's Integer Parameters With indexOf()
Since we will not always have the luxury of knowing the exact value of a string, we cannot rely on using integers as substring parameters to extract a new string…
Uppercasing and Lowercasing Characters of a String
The first function "toUpper()", takes the value of the text input and converts it to uppercase using the toUpperCase() method. The second function, "toLower()" takes the value of the text input and converts it to lowercase using the toLowerCase() method.
Replacing Part Of A String Using the replace() Method
This is accomplished by the replace() method, along with a little help from the indexOf() method which is used to search for an instance of a specified string…
Account for spaces at the end of the last name
If we used lastIndexOf(" ") as substring parameters for the middle and last names like…
Account for spaces throughout string
To account for any extra spaces in the string named…
Split string method
This example takes the names entered by the user and uppercases the first letter of each name, then lowercases the following letters.
The replace() method
As you might suppose, replace() method replaces matches to a given regular expression with some new string.
The test() method
The test() method takes a given string as a parameter and looks for matches according to the pattern defined within the regular expression object itself.
The string object is used to create strings…
The String Object
Date and Time
The string class is another built in class that is slightly different from the normal. Where this class differs from all of the others is the way that you define objects of this type…
On this page I explain what strings are and then give an overview of some useful things you can do with them…
The String object can be used to work with strings. A string is a collection of characters…
The String object contains 28 functions, which can be used to manipulate the string. In this section you will see these 28 functions in some small examples…
WRITE ARTICLES FOR US & FREE PROMOTION OF YOUR GRAPHIC DESIGN BUSINESS
We are looking for submissions of Graphic Design Tutorials and Articles from Knowledgeable Graphic Designers and Publishing Professionals. We will add a paragraph about your graphic design services (or other services as long as it is not offensive) along with your published article. We will add your contact information, including your graphic design business' website link, within this paragraph. AllGraphicDesign.com gets around 16,000 Unique Visitors every day and this could mean a nice amount of traffic being sent to your graphics business' web site (or your graphic design portfolio). Find Out More Here
Graphic Design Menu
US YOUR HOMEPAGE
UP FOR NEWSLETTER ::
YOUR PORTFOLIO FREE ::
OUR FRIENDS -- Adobe Photoshop Tutorials -- Photoshop, Flash, 3D Studio Max Tutorials -- Web Designers & Developers --Photoshop Tutorial Man -- Tutorial Guide -- Free Webmaster Tutorials -- Web Designers -- Web Design Portfolio --AllFreelanceWork--AllFreelance--Artists Helping Children --All Creative Portfolios -- All Work at Home Ideas
Design Resources Center is always looking for more information & resources to
put into our graphics directory portal. If you have any
design or dtp resources that you think would fit in well, such as graphics software links, graphics and clipart foundries, objects, filters,
fonts, desktop publishing or other graphic design resources articles,
templates, etc...Please email us and let us know. All Graphic Design Resources Center has been around since 1998 (originally as deezin dot com), offering desktop publishing information and graphic
design resources to make your web search for graphics stuff easier.
Let us know how we can make All Graphic Design site more helpful for
you! All informational links are hand added by an editor. Thank you for visiting
our site and don't forget to bookmark this site.
R E L A T E D . L I N K S
and software are the copyrighted works of Allfreelance, ©
2003 - 2019 QuinStreet, Inc.