Javascript code block not working

Hello!

I’m doing practice by following the tutorial “Appgyver Absolute Beginner Tutorial”

Tutorial link: https://www.youtube.com/watch?v=uoOSqI_PID4&t=545s

To add an object to an array inside another object, the instructor suggested to use the Javascript code block (basically to use PUSH() function of the Javascript array):

The logic canvas is like this:

As you see, I added the logic to the bottom button, which basically ran the Javascript above and then display a Toast message with a static text value. But the Toast message does not appear when I run it on my Appgyver Test app.

Why does my logic just stop at the Javascript code block and can’t go beyond it?

Hi! This happens when there’s a syntax error or something. Here you are missing the ”s” from ”inputs” at this line:

text: input.text

2 Likes