JavaScript String Object Reference

 

JavaScript String Object Reference Chart Cheat Sheet

This is part fifteen of the JavaScript tutorial. If you missed the previous lessons, you may want to review them prior to viewing this JavaScript String Object Reference Chart.

The JavaScript string object reference chart below, also referred to as a “cheat sheet,” will enable you to easily locate the string objects you need and then copy and paste them into your JavaScript code.

 

JavaScript String Object Reference

Method

Description

anchor( )

Creates an anchor in HTML

big( )

Displays a string in a large font

blink( )

Causes a string to blink

bold( )

Displays a string in bolded letters

charAt( )

Places a character in a specified place

charCodeAt

Displays the Unicode of the character at a specific position

concat

Connects two or more strings

fixed( )

Causes a string to display in teletype

fontcolor( )

Determines the color of text

fontsize( )

Determines the size of text

indexOf( )

Gives the first occurrence of a string value

italics( )

Causes a string to be italicized

lastIndexOf( )

Gives the last occurrence of a string value

link( )

Displays a string as a link

match( )

Specifies that the script should search for a specific value in a string

replace( )

Specifies that the script should replace specified characters with other
characters

search( )

Specifies that the script should search a string for something specific

slice

Extracts part of a string and return it in a new string

small( )

Specifies that a string to be displayed in small letters

split( )

Splits one string into several other strings

strike( )

Specifies that a string should appear with a strikethrough

sub( )

Specifies that a string should display as a subscript

substr( )

Extracts a specific number of character within a string from a start
index

substring( )

Extracts characters within a string between two specific indices

Sup( )

Specifies that a string should display as a superscript

toLowerCase( )

Specifies that a string should display in lowercase letters

toUpperCase( )

Specifies that a string should display in uppercase letters

toSource( )

Denotes the source code of an object

valueOf( )

Supplies the primitive value of a String object

 

The above JavaScript code cheat sheet for your string objects provides a great way to learn JavaScript coding.

 
This concludes the JavaScript String Object Reference Chart. In the next section, you will find a JavaScript Date Object Reference Chart.