# Is it possible to use javascript in app?

**URL:** <https://community.thunkable.com/t/is-it-possible-to-use-javascript-in-app/2055467>\
**Category:** Questions about Thunkable X\
**Created:** [September 23, 2022, 5:47pm UTC](https://community.thunkable.com/t/is-it-possible-to-use-javascript-in-app/2055467 "2022-09-23T17:47:04Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [September 25, 2022, 6:09pm UTC](https://community.thunkable.com/t/is-it-possible-to-use-javascript-in-app/2055467/21 "2022-09-25T18:09:06Z")

</div>

as you said it’s a complicated project  
I will study this with a clear head I can continue thanks to you

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 25, 2022, 7:04pm UTC](https://community.thunkable.com/t/is-it-possible-to-use-javascript-in-app/2055467/22 "2022-09-25T19:04:57Z")

</div>

You can easily achieve that by getting the time zone and adjust the time such as.

```auto
new Date().getTime() + (new Date().getTimezoneOffset() * 60 * 1000)

```

This should return the timestamp in your local time.

---

<div class="post-metadata">

**Author:** ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)\
**Post date:** [September 25, 2022, 7:33pm UTC](https://community.thunkable.com/t/is-it-possible-to-use-javascript-in-app/2055467/23 "2022-09-25T19:33:44Z")

</div>

thanks for the finishing touch

I realize that the script is not much faster than the api  
in any case I would have discovered one of the uses of the webviewer and it is a lot

Thank you for your support

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 25, 2022, 11:53pm UTC](https://community.thunkable.com/t/is-it-possible-to-use-javascript-in-app/2055467/24 "2022-09-25T23:53:39Z")

</div>

If Thunkable provides a way to run JavaScript code directly you would see it very very fast just like IFTTT and other systems but even with this speed issue, going through `Web Viewer` is better than API for:

- It runs in both the computer and the phone whereas most APIs will not run from the computer platform.
- You have the flexibility to alter outpot or even the process because you have direct access to JS code.
- It can run offline if packaged within the app assuming the long standing bug is fixed.
- you do not need to depend on an external source maintaining the API service.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [December 24, 2022, 11:54pm UTC](https://community.thunkable.com/t/is-it-possible-to-use-javascript-in-app/2055467/25 "2022-12-24T23:54:05Z")

</div>

Closed on December 24, 2022, 11:54pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://community.thunkable.com/t/is-it-possible-to-use-javascript-in-app/2055467.md?page=1)
