# Can't get my first experimental code to work

**URL:** <https://community.glideapps.com/t/cant-get-my-first-experimental-code-to-work/55020>\
**Category:** Ask for Help\
**Created:** [November 27, 2022, 10:22am UTC](https://community.glideapps.com/t/cant-get-my-first-experimental-code-to-work/55020 "2022-11-27T10:22:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KPT](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@KPT](https://community.glideapps.com/u/KPT)\
**Post date:** [November 27, 2022, 10:22am UTC](https://community.glideapps.com/t/cant-get-my-first-experimental-code-to-work/55020/1 "2022-11-27T10:22:20Z")

</div>

I have alot of places i need to pretty print times in various formats, as it take a few columns everytime I thought to jump into experimental code columns.

I’m beyond newbie in using github or replit.  
I know a little JS so I thought I’ll do something simple, convert the glide replit starter code to pretty print some minutes into the format hh:mm:ss.

I changed the JSON as described [here](https://www.glideapps.com/docs/reference/computed-columns/experimental-code-column)  
I converted it to take one parameter - a minute-number from a rollup and otherwise default to 0 (now it’s set to another number to check if everything computes as I want it to).  
I copy/pasted the URL into the experimental code column in Glide and it gives me the option to fill in minutes parameter.

However I can’t get it to return and value (I’ve set the return as string in the JSON).

Does anyone know where I go wrong?

This is my code: [https://replit.com/@kTrager/MinSec#function.js](https://replit.com/@kTrager/MinSec#function.js)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 27, 2022, 10:46am UTC](https://community.glideapps.com/t/cant-get-my-first-experimental-code-to-work/55020/2 "2022-11-27T10:46:56Z")

</div>

```auto
let minutes = min ?? 61.7;

```

should be…

```auto
let minutes = min.value ?? 61.7;

```

---

<div class="post-metadata">

**Author:** ![KPT](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@KPT](https://community.glideapps.com/u/KPT)\
**Post date:** [November 28, 2022, 8:55am UTC](https://community.glideapps.com/t/cant-get-my-first-experimental-code-to-work/55020/3 "2022-11-28T08:55:45Z")

</div>

> [@Darren\_Murphy](#):
>
> `min.value`

Ahhh - thanks for catching that. 🙌  
It worked.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 29, 2022, 8:56am UTC](https://community.glideapps.com/t/cant-get-my-first-experimental-code-to-work/55020/4 "2022-11-29T08:56:31Z")

</div>

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