How to create an auido array (JavaScript)

I am creating a program where it reads out a certain number. To to this, I have an audio file of numbers 0 - 9. I want to create an array where I can say

audio.clip = number[4];
audio.Play();

And have this play the sound file ‘four’. What I have currently is

var zero: AudioClip;
var one: AudioClip;
var two: AudioClip;
var three: AudioClip;
var four: AudioClip;
var five: AudioClip;
var six: AudioClip;
var seven: AudioClip;
var eight: AudioClip;
var nine: AudioClip;
 
var number = [zero,one,two,three,four,five,six,seven,eight,nine];

just declare
var myaudio:AudioClip[];
then back in the editor, you’ll see a “Sound Options” section in your object with that script.
Now you just type in the number 10 in the “size” box and you’ll get 10 places for your sounds.
Then in your scripts just call audio.clip=myaudio.[0] (The first number in the array is 0 and will go up to 9 for a 10-slot array.