---
title: "How to print Alphabet \"a-z\" without using Array in JavaScript?"  
description: "How to print Alphabet \"a-z\" without using Array in JavaScript?"  
author: "Ashutosh Patel"  
published: 2024-12-16  
updated: 2024-12-17  
canonical: https://www.mindstick.com/forum/161061/how-to-print-alphabet-a-z-without-using-array-in-javascript  
category: "javascript"  
tags: ["javascript", "programs", "javascript method"]  
reading_time: 1 minute  

---

# How to print Alphabet "a-z" without using Array in JavaScript?

Write the [JavaScript](https://www.mindstick.com/articles/874/how-to-create-watermark-text-for-textbox-by-using-javascript) [program to print](https://www.mindstick.com/forum/157407/javascript-program-to-print-all-prime-number-between-two-intervals) the alphabets “a” to “z” without using an array.

## Replies

### Reply by ICSM Computer

***/* Using ASCII Code */***

```javascript
/* For a-z in lower case */
for(let i = 97; i <= 122 ;i++){
  console.log(String.fromCharCode(i))
}
```

```javascript
/* For A-Z in lower case */
for(let i = 65; i <= 90 ;i++){
  console.log(String.fromCharCode(i))
}
```


---

Original Source: https://www.mindstick.com/forum/161061/how-to-print-alphabet-a-z-without-using-array-in-javascript

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
