# ReferenceError: position is not defined

**URL:** <https://discourse.psychopy.org/t/referenceerror-position-is-not-defined/7473>\
**Category:** Online experiments\
**Created:** [April 20, 2019, 12:11am UTC](https://discourse.psychopy.org/t/referenceerror-position-is-not-defined/7473 "2019-04-20T00:11:40Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tsgouvea](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/tsgouvea/32/4983_2.png) [@tsgouvea](https://discourse.psychopy.org/u/tsgouvea)\
**Post date:** [May 1, 2019, 3:52pm UTC](https://discourse.psychopy.org/t/referenceerror-position-is-not-defined/7473/5 "2019-05-01T15:52:54Z")

</div>

I only now realized, after quite some time exploring the forum [e.g. @dvbridges [here](https://discourse.psychopy.org/t/first-steps-in-online-experiments/5200)], that I’m supposed to manually translate code blocks from Python to JS (by setting dropdown menu “code type” to “both” on code block window). I’d suggest this be explained more prominently on documentation (e.g. [Manual](http://www.psychopy.org/PsychoPyManual.pdf) section 5.5.3 - Code Component, perhaps a new section 7.0 - Exporting your experiment to JavaScript)  
thanks!

---

_[View the full topic](https://discourse.psychopy.org/t/referenceerror-position-is-not-defined/7473)._
