# Help! Why I cannot use the P5JS

**URL:** https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067
**Category:** Beginners
**Created:** [February 24, 2020, 10:35am UTC](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067 "2020-02-24T10:35:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![impandapasta](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@impandapasta](https://discourse.processing.org/u/impandapasta)
#### Post date: [February 24, 2020, 10:35am UTC](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067/1 "2020-02-24T10:35:04Z")

</div>

![微信图片_20200224182934](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/90156fc005571949cb1cb92b4c3d3328232df5dd.jpeg)  
I’m learning my Coursera courses about P5JS and I downloaded it ,however when I opened the **sketch.js** , (I didn’t do anything before open it .) I found there always have many errors… and when I tried to open the **index.html** as the course said, I only got a blank page.

First I thought maybe something wrong with my **Brackets** , so I downloaded the **Atom** , however , nothing changed.

Cuz I find the new user can only attaches one photo,so I make two photos into one. The former one is I thought maybe when I rewrite some codes , I won’t get errors ,but things didn’t go well. And the latter one is what the result I want to get.

Today is my first day to learn P5JS…I’m confused…Is there anything I did wrong?☹  
Thanks for everyone who giving me help!

---

<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: [February 24, 2020, 12:27pm UTC](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067/2 "2020-02-24T12:27:37Z")

</div>

For an absolute beginner, my advice is to start on some p5js online editor, such as this 1: 👨‍🎓  
[OpenProcessing.org/sketch/create](http://OpenProcessing.org/sketch/create)

Some sketches I’ve got there btW: 😀

> **[Sketches by GoToLoop on OpenProcessing](https://www.openprocessing.org/user/22279#sketches)**
>
> Processing sketches by GoToLoop on OpenProcessing

By using such specialized p5js online resources we don’t need to make our own “index.html” file. 😉

When you decide it’s time to learn how to code your own “index.html” file, you can use more generic JS online editors, such as these 2 below: 🕶

> **[CodePen](https://codepen.io)**
>
> An online code editor, learning environment, and community for front-end web development using HTML, CSS and JavaScript code snippets, projects, and web applications.

  

> **[Glitch: The friendly community where everyone builds the web](https://glitch.com)**
>
> Simple, powerful, free tools to create and use millions of apps.

You can also take a look at my sketches I’ve got over there: 😇  
[CodePen.io/GoSubRoutine/pens/public](http://CodePen.io/GoSubRoutine/pens/public)

> **[GoSubRoutine](https://glitch.com/@GoSubRoutine)**
>
> See what GoSubRoutine (@GoSubRoutine) is up to on Glitch, the friendly community where everyone can discover & create the best apps on the web. https://Discourse.Processing.org/

---

<div class="post-metadata">

### Author: ![impandapasta](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@impandapasta](https://discourse.processing.org/u/impandapasta)
#### Post date: [February 25, 2020, 11:48am UTC](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067/3 "2020-02-25T11:48:35Z")

</div>

thank u so much ! It’s really a nice website! 😀 maybe when I get used to p5js , I can figure out what’s wrong in mine:)

---

<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: [February 25, 2020, 11:57am UTC](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067/4 "2020-02-25T11:57:59Z")

</div>

You may attempt to run some of my sketches on your local IDE (Brackets, Atom) to see whether any of them work for you. 🏃‍♂️

But make sure to pick the 1s which contain both the “index.html” & “sketch.js” files: 🙋‍♂️

> **[GoSubRoutine’s gists](https://Gist.GitHub.com/GoSubRoutine)**
>
> GitHub Gist: star and fork GoSubRoutine's gists by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![impandapasta](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@impandapasta](https://discourse.processing.org/u/impandapasta)
#### Post date: [February 27, 2020, 11:57am UTC](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067/5 "2020-02-27T11:57:10Z")

</div>

Hey! I can run your sketches in my IDE!! Thank you! 😇
