# P5.js split() questions

**URL:** https://discourse.processing.org/t/p5-js-split-questions/15701
**Category:** Beginners
**Created:** [November 21, 2019, 6:45pm UTC](https://discourse.processing.org/t/p5-js-split-questions/15701 "2019-11-21T18:45:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![humanperson](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@humanperson](https://discourse.processing.org/u/humanperson)
#### Post date: [November 21, 2019, 6:45pm UTC](https://discourse.processing.org/t/p5-js-split-questions/15701/1 "2019-11-21T18:45:49Z")

</div>

Hello guys, I’m new here. I was wondering if it was possible to get the split function in p5.js to just split the letters of a word without the delim value. Answers as to how I would do this would also be very helpful.

thanks in advance.

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [November 21, 2019, 9:00pm UTC](https://discourse.processing.org/t/p5-js-split-questions/15701/2 "2019-11-21T21:00:57Z")

</div>

```javascript
abcd = 'abcd';
chars = abcd.split('');
console.log(chars);

```

[p5js.org/reference/#/p5/split](http://p5js.org/reference/#/p5/split)

> **[String.prototype.split()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)**
>
> The split() method turns a String into an array of strings, by separating the string at each instance of a specified separator string.
