JS from crib sheet not working

Did I use .shift() in place of .pop() wrong? I know essentially 0 about JS.

URL of experiment: Experiment | zared/dissertation-stim-norming (pavlovia.org)

I created and shuffled a list of conditions in a code component (I defined a shuffle condition before the experiment)…

…that I used .pop() in python to remove and use at begin routine.
image

I used .shift() in JS, based on @wakecarter 's Crib Sheet

image

But I am still getting an error:

Why am I getting this error?

The issue is with the *3 in the creation of setOps. Please look elsewhere in my crib sheet for array creation.

:man_facepalming: :man_facepalming: :man_facepalming:

I’ll figure this all out soon enough. Thanks for everything!!