Pavlovia, playlist not defined

URL of experiment: https://run.pavlovia.org/ZelalGul/monk_lion

Description of the problem: I have defined a list of vibrations corresponding to visual stimuli. In the begin experiment tab I used this code to define which list I want to play. But I keep receiving the error message playlist not defined.
//set up a dictionary that has the animal sequences for each animal
//const textSupport = document.querySelector(‘p[data-js=“support”]’);
const playList= {
‘monkey’: [ 166,320,128,257,
103,249,71,145,
138,366,119,273,
120,248,79,121,
71,121,63,113,
63,129,263,665,
103,112,64,113,
63,105,63,129,
119,521,71,129,
63,120,56,149,
107],
‘lion’: [
592,184,632,144,
584,169,534,282,
96,159,95,161,
104,24,88,40,
120,152,
592,184,632,144,
584,169,534,282,
96,159,95,161,
104,24,88,40,
120,152],}

The variables monkey and lion are included in my excel file, contained in my loop saved as animalList. I did not include the vibration parameters in the excel file.

I’d be grateful for any suggestions

The error refers to playlist and your code refers to playList

Sorry, actually, when I included playlist in the code, the issue persisted.

Are you viewing the latest version…?

https://psychopy.org/online/psychoJSCodingDebugging.html

I fixed it ! Thank you. But, I am still trying to figure out how to assign the vibrations to occur when the visual stimuli is clicked or touched, Or as a hover as you mentioned in the previous response. Because I want to present two different vibration patterns each assigned to one of the visual stimuli in response to a click or response.

I didn’t include the correct numerical values in the exel file. I thought this was the issue but didn’t check. Fixing it made it work

I fixed it ! Thank you. But, I am still trying to figure out how to assign the vibrations to occur when the visual stimuli is clicked or touched, Or as a hover as you mentioned in the previous response. Because I want to present two different vibration patterns each assigned to one of the visual stimuli in response to a click or response.

I didn’t include the correct numerical values in the exel file. I thought this was the issue but didn’t check. Fixing it made it work