MV Array returning undefined?

Ok so i'll start off saying i'm not good or knowledgeable with neither arrays or script calls in MV (Or in general, really) so i'm sorry if the solution is some really obvious one i haven't found.

I set up two script calls in an event ↓

[ISPOILER]
1693582423990.png

[/ISPOILER]

Which i thought would result in it saying "Placeholder is currently stored in this box"
but it just returns with "undefined" ↓

[ISPOILER]
1693582372534.png
[/ISPOILER]

What is it i'm doing wrong that it's giving me undefined instead of the text? I thought it might be that i should add "" to the text inside the array but that still gives me undefined
Why didn't it add the spoiler thing to the images?
Strings must be enclosed in quotation marks, otherwise JavaScript thinks it's a variable. So ["Placeholder"] rather than [Placeholder].

Also, array indexes start at 0, so [1] actually accesses the second element.

In general I'd recommend going through a few tutorials on JavaScript arrays before using them, it will save you time in the long run 😉
Strings must be enclosed in quotation marks, otherwise JavaScript thinks it's a variable. So ["Placeholder"] rather than [Placeholder].

Also, array indexes start at 0, so [1] actually accesses the second element.

In general I'd recommend going through a few tutorials on JavaScript arrays before using them, it will save you time in the long run 😉
I uhhh...I forgot to put it back to 0 when testing with "" ...Yeah that was a stupid mistake

thanks for the help, i shouldn't need it...
Even with the correct index, as @Mac15001900 pointed out the Placeholder thing is going to produce a syntax error (leading to the variable still returning undefined)

You can't just type a word in code, it's going to presume that's a variable.
Even with the correct index, as @Mac15001900 pointed out the Placeholder thing is going to produce a syntax error (leading to the variable still returning undefined)

You can't just type a word in code, it's going to presume that's a variable.
Yeah i know i did add "" to it but i removed it too by accident, it's just a dummy mistake

Original thread: https://forums.rpgmakerweb.com/threads/array-returning-undefined.160828/