JavaScript Tutorial

JS HomeJS EditorsJS How toJS Basic ProgramJS ConsoleJS VariableJS constJS Data TypesJS StringJS Type CastingJS KeywordsJS OperatorsJS Use StrictJS Escape SequencesJS Comments

JS Control Statements

JS ifJS if elseJS else ifJS BreakJS ContinueJS Switch Case

JS Looping

JS Loop ForJS Loop For InJS Loop WhileJS Loop Do While

JS Array

JS ArrayJS Array One DimensionalJS Array Multi DimensionalJS Array Associative

JS Functions

JS FunctionJS Function SelfJS Function call()JS Function apply()JS Call By ValueJS Call By ReferenceJS Function Closures

JS Scope

JS Scope GlobalJS Scope LocalJS Let

JS File Handling

JS File Handling

JS Error Handling

JS try catchJS throwJS finally

JS Select Particulars

JS getElementByID()JS getElementsByClassName()JS getElementsByTagName()JS getElementsByName()JS querySelector()JS querySelectorAll()

JS Popup

JS alert()JS confirm()JS prompt()

JS Events

JS EventsJS Media EventsJS Mouse EventsJS Keyboard EventsJS Form EventsJS Drag EventsJS Clipboard EventsJS Print EventsJS Animation EventsJS Transition EventsJS Server-Sent EventsJS Touch EventsJS Object Events

JS Methods

JS Array MethodsJS String MethodsJS Math MethodsJS Number MethodsJS Date MethodsJS Element MethodsJS Window MethodsJS Node MethodsJS Document MethodsJS Console MethodsJS Timing MethodsJS Navigator MethodsJS Miscellaneous Methods

JS Properties

JS Array PropertiesJS String PropertiesJS Number PropertiesJS MouseEvent PropertiesJS KeyboardEvent PropertiesJS AnimationEvent PropertiesJS TransitionEvent PropertiesJS Element PropertiesJS Window PropertiesJS Node PropertiesJS Document PropertiesJS Navigator PropertiesJS HashChangeEvent PropertiesJS Miscellaneous Properties

JS Regular Expressions

JS Regexp

JS Cookies

JS Cookies

JS Interview Programs

JS Common ProgramsJS Array ProgramsJS Converter ProgramsJS Star Patterns ProgramJS Number Patterns ProgramJS Alphabet Patterns Program

JS Reference

LEARN JSONLEARN AJAXMIME TypesASCII Table

JavaScript Alphabet Patterns Program

Last Updated:

JavaScript Alphabet Patterns Program

Note: Keep the following tips while trying alphabet patterns using JavaScript.

  • Use <br> tag to insert new line.
  • Use HTML Entity &nbsp; to insert multiple spaces in a document because, in HTML, multiple whitespace characters are collapsed into one space.
Alphabet Pattern 1
A
AB
ABC
ABCD
ABCDE
Alphabet Pattern 2
E
ED
EDC
EDCB
EDCBA
Alphabet Pattern 3
E
DE
CDE
BCDE
ABCDE
Alphabet Pattern 4
A
BA
CBA
DCBA
EDCBA
Alphabet Pattern 5
ABCDE
ABCD
ABC
AB
A
Alphabet Pattern 6
ABCDE
BCDE
CDE
DE
E
Alphabet Pattern 7
EDCBA
DCBA
CBA
BA
A
Alphabet Pattern 8
EDCBA
EDCB
EDC
ED
E
Alphabet Pattern 9
A
BB
CCC
DDDD
EEEEE
Alphabet Pattern 10
E
DD
CCC
BBBB
AAAAA
Alphabet Pattern 11
EEEEE
DDDD
CCC
BB
A
Alphabet Pattern 12
AAAAA
BBBB
CCC
DD
E
Alphabet Pattern 13
A 
B C 
D E F 
G H I J 
K L M N O
Alphabet Pattern 14
A
ABC
ABCDE
ABCDEFG
ABCDEFGHI
Alphabet Pattern 15
ABCDEEDCBA
ABCD**DCBA
ABC****CBA
AB******BA
A********A
Alphabet Pattern 16
    A  
  B C D  
E F G H I
Alphabet Pattern 17
EDCB*
EDC*A
ED*BA
E*CBA
*DCBA
Alphabet Pattern 18
A
ABA
ABCBA
ABCDCBA
ABCDEDCBA
Alphabet Pattern 19
A        A
AB      BA
ABC    CBA
ABCD  DCBA
ABCDEEDCBA
Alphabet Pattern 20
    A
   BA
  CBA
 DCBA
EDCBA
Alphabet Pattern 21
A
B*B
C*C*C
D*D*D*D
E*E*E*E*E
D*D*D*D
C*C*C
B*B
A
Alphabet Pattern 22
        A
      B C
    D E F
  G H I J
K L M N O
Alphabet Pattern 23
        E
      E D
    E D C
  E D C B
E D C B A
Alphabet Pattern 24
A
BAB
CBABC
DCBABCD
EDCBABCDE
Alphabet Pattern 25
A B C D E
F G H I
J K L
M N
O
Alphabet Pattern 26
ABCDE
BCDEA
CDEBA
DECBA
EDCBA
Alphabet Pattern 27
    A
   A B
  A B C
 A B C D
A B C D E
Alphabet Pattern 28
E E E E E E E E E
E D D D D D D D E
E D C C C C C D E
E D C B B B C D E
E D C B A B C D E
Alphabet Pattern 29
E E E E E E E E E
E D D D D D D D E
E D C C C C C D E
E D C B B B C D E
E D C B A B C D E
E D C B B B C D E
E D C C C C C D E
E D D D D D D D E
E E E E E E E E E
Alphabet Pattern 30
ABCDE
BABCD
CBABC
DCBAB
EDCBA
Alphabet Pattern 31
A       A
 B     B  
  C   C    
   D D      
    E
Alphabet Pattern 32
    A
   ABA
  ABCBA
 ABCDCBA
ABCDEDCBA
Alphabet Pattern 33
    A
   B B
  C   C
 D     D
E       E
Alphabet Pattern 34
    A
   B B
  C   C
 D     D
E       E
 D     D
  C   C
   B B
    A

Share this Page

Meet the Author