# Problem with translating python code to JS for pavlovia

**URL:** <https://discourse.psychopy.org/t/problem-with-translating-python-code-to-js-for-pavlovia/8239>\
**Category:** Online experiments\
**Created:** [June 25, 2019, 8:06am UTC](https://discourse.psychopy.org/t/problem-with-translating-python-code-to-js-for-pavlovia/8239 "2019-06-25T08:06:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasi](https://avatars.discourse-cdn.com/v4/letter/v/a4c791/32.png) [@vasi](https://discourse.psychopy.org/u/vasi)\
**Post date:** [June 25, 2019, 8:06am UTC](https://discourse.psychopy.org/t/problem-with-translating-python-code-to-js-for-pavlovia/8239/1 "2019-06-25T08:06:40Z")

</div>

Hello,

I am new to Pavlovia and I am trying to run an experiment that I programmed in Builder 3.1.2 online. I have added a code that it is in python and I know that this is the problem. I read in a related post that the solution is to translate code components into JavaScript. But my code is very complicated so it is not possible to do it in JS (it is the method of quest+).  
Is there any other solution/idea?

I would appreciate any help. Thank you!

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [June 25, 2019, 9:07am UTC](https://discourse.psychopy.org/t/problem-with-translating-python-code-to-js-for-pavlovia/8239/2 "2019-06-25T09:07:45Z")

</div>

> [@vasi](#):
>
> it is not possible to do it in JS

It might not be as easy, but I’m sure it will be possible. You should post your Python code here, to hopefully get some tips for the translation. I’m not a JavaScript person myself, but hopefully others can chip in.
