Array wont instantiate,i want to instantiate an array of gameobjects but they are not instantiating

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Barmovement : MonoBehaviour {

public Transform avatar;
public GameObject[] levelsArray;
public GameObject one;
public GameObject two;
public GameObject three;
public GameObject four;
public GameObject five;

void Start()
    levelsArray[0] = one;
    levelsArray[1] = two;
    levelsArray[2] = three;
    levelsArray[3] = four;
    levelsArray[4] = five;

void Update()

void spawn()
    int randomnum = Random.Range(0, 4);
    Instantiate(levelsArray[randomnum], avatar.position, Quaternion.identity);


The answer is probably the fact that you haven’t defined the GameObjects.
It’s a bit like if you have int value, but forgot to define what value it actually is.

So what you’re doing is essentially this:

public GameObject one = ???

So change it into whatever you like for example:

public GameObject one = new GameObject("One");