# How i extends class in p5.js?

**URL:** <https://discourse.processing.org/t/how-i-extends-class-in-p5-js/894>\
**Category:** Coding Questions\
**Created:** [June 12, 2018, 11:56am UTC](https://discourse.processing.org/t/how-i-extends-class-in-p5-js/894 "2018-06-12T11:56:22Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [June 16, 2018, 5:33pm UTC](https://discourse.processing.org/t/how-i-extends-class-in-p5-js/894/11 "2018-06-16T17:33:39Z")

</div>

> [@erkosone](#):
>
> I tried this in the Processing IDE in p5.js Mode…

AFAIK, PDE’s p5js Mode doesn’t allow the instance mode approach I guess. 😬

The easiest way to run my demo sketches is by having any Firefox-based browser installed in your OS. 🤩

I recommend Firefox Developer Edition, Waterfox & Palemoon: 🕶  
[https://www.mozilla.org/en-US/firefox/developer/all/](https://www.mozilla.org/en-US/firefox/developer/all/)

> **[Fast and Private Web Browser](https://www.waterfox.net/)**
>
> Waterfox is the privacy-focused web browser engineered to give you speed, control, and peace of mind on the internet.

> **[The Pale Moon Project homepage](http://www.palemoon.org/)**
>
> Pale Moon is an Open Source, Mozilla-derived web browser available for Microsoft Windows and Linux, focusing on efficiency and ease of use.

- Create some folder and then place both files “index.html” & “sketch.js” there.
- Finally open any Firefox-based browser and drag & drop the “index.html” file there.
- It should be run alright now! 🤠

P.S.: For Chromium-based browsers, read on this site below: 😸

> **[How to allow-file-access-from-file in Chrome on any OS](https://chrome-allow-file-access-from-file.com/)**
>
> Step By Step Instructions on how to allow access flag on Windows, Linux & Mac. Then start viewing your local application files in the browser.

---

_[View the full topic](https://discourse.processing.org/t/how-i-extends-class-in-p5-js/894)._
