# Help with javascript \`this\` keyword and \`bind\`

**URL:** <https://discourse.processing.org/t/help-with-javascript-this-keyword-and-bind/38897>\
**Category:** Coding Questions\
**Created:** [September 21, 2022, 4:49am UTC](https://discourse.processing.org/t/help-with-javascript-this-keyword-and-bind/38897 "2022-09-21T04:49:56Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [September 21, 2022, 6:02am UTC](https://discourse.processing.org/t/help-with-javascript-this-keyword-and-bind/38897/9 "2022-09-21T06:02:04Z")

</div>

> [@vkbr](#):
>
> Still very hard for me to think _functional_.

JS is a multi-paradigm language. And OOP is fully 1 of them.

> [@vkbr](#):
>
> I was just starting to grasp Java and the oop stuff…

Differences among Java, JS and even Python classes aren’t that large.

We can easily apply most of the OOP knowledge from 1 to the other.

I’ve got lotsa sketches written in both languages if you wish to take a look:

> [@Convert p5.js to Processing](https://discourse.processing.org/t/convert-p5-js-to-processing/944/8):
>
> Haven’t you taken a look at my Reddit link from my 1st reply for this topic btW? see_no_evil Anyways, I’ve got quite some more Java + p5js sketches for you to compare both syntax flavors: icecream

> [@vkbr](#):
>
> Moving to a bunch of callbacks and self-invoking anonymous functions is not so easy…

Java also got those starting at version 8. Again, same stuff. Java & JS are close cousins!

---

_[View the full topic](https://discourse.processing.org/t/help-with-javascript-this-keyword-and-bind/38897)._
