# Use javascrapt variable in thunkable

**URL:** <https://community.thunkable.com/t/use-javascrapt-variable-in-thunkable/1040566>\
**Category:** Questions about Thunkable X\
**Created:** [December 19, 2020, 8:31pm UTC](https://community.thunkable.com/t/use-javascrapt-variable-in-thunkable/1040566 "2020-12-19T20:31:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![haiflosse](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@haiflosse](https://community.thunkable.com/u/haiflosse)\
**Post date:** [December 19, 2020, 8:31pm UTC](https://community.thunkable.com/t/use-javascrapt-variable-in-thunkable/1040566/1 "2020-12-19T20:31:53Z")

</div>

Hi!  
I have a javascript game where I save a score in a javascript variable.  
Is it possible to use the javascript variable in thunkable.  
So I want to start the javascript game in a webviewer and want to use the javascript variable in thunkable.  
kindly regards for an answer.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [December 19, 2020, 8:59pm UTC](https://community.thunkable.com/t/use-javascrapt-variable-in-thunkable/1040566/2 "2020-12-19T20:59:12Z")

</div>

Yes!

See this thread

> [@How to use "call Postmessage" and "Whene receives message" with Web viewer?](http://community.thunkable.com/t/how-to-use-call-postmessage-and-whene-receives-message-with-web-viewer/525168/11):
>
> This is explained on github. I have already used this as has actech in some examples. The issue is that this forum is not to teach JavaScript. There are many forums that accomplish that task.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:19pm UTC](https://community.thunkable.com/t/use-javascrapt-variable-in-thunkable/1040566/3 "2024-11-08T12:19:36Z")

</div>


