Home arrow JavaScript arrow JavaScript Objects: Finishing Strings
JAVASCRIPT

JavaScript Objects: Finishing Strings


In the last tutorial we continued our discussion on String Objects in JavaScript. Hopefully we will wrap it up in this episode. We left off with the Match() method, which allowed us to search a string and return the same string if it was present in our variable, or return a null value if it was not. We will pick back up with the Replace() method.

Author Info:
By: James Payne
Rating: 5 stars5 stars5 stars5 stars5 stars / 3
January 28, 2008
TABLE OF CONTENTS:
  1. · JavaScript Objects: Finishing Strings
  2. · The Replace() Method
  3. · The Search() Method
  4. · The Slice() Method
  5. · The Strike(), Sub(), Small() and Sup() Methods
  6. · The ToLowerCase() and ToUpperCase Methods

print this article
SEARCH DEVARTICLES

JavaScript Objects: Finishing Strings
(Page 1 of 6 )

 But before we do, here is our table of Object String Methods:

 

Method

Description

anchor()

Creates an HTML anchor

big()

Displays a string in a big font

blink()

Displays a blinking string

bold()

Displays a string in bold

charAt()

Returns the character at a specified position

charCodeAt()

Returns the Unicode of the character at a specified position

concat()

Joins two or more strings

fixed()

Displays a string as teletype text

fontcolor()

Displays a string in a specified color

fontsize()

Displays a string in a specified size

fromCharCode()

Takes the specified Unicode values and returns a string

indexOf()

Returns the position of the first occurrence of a specified string value in a string

italics()

Displays a string in italic

lastIndexOf()

Returns the position of the last occurrence of a specified string value, searching backwards from the specified position in a string

link()

Displays a string as a hyperlink

match()

Searches for a specified value in a string

replace()

Replaces some characters with some other characters in a string

search()

Searches a string for a specified value

slice()

Extracts a part of a string and returns the extracted part in a new string

small()

Displays a string in a small font

split()

Splits a string into an array of strings

strike()

Displays a string with a strikethrough

sub()

Displays a string as subscript

substr()

Extracts a specified number of characters in a string, from a start index

substring()

Extracts the characters in a string between two specified indices

sup()

Displays a string as superscript

toLowerCase()

Displays a string in lowercase letters

toUpperCase()

Displays a string in uppercase letters

toSource()

Represents the source code of an object

valueOf()

Returns the primitive value of a String object


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials