Is it possible to use a variable for dropdown options

Umm I found a couple of threads about this:

https://forum.snap.berkeley.edu/t/how-do-i-make-a-custom-javascript-dropdown-in-custom-blocks/6158/2