how to reference a child object unity

C#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ExampleScript : MonoBehaviour
{
	// Private variables for referencing
    private GameObject parentObject;
    private GameObject childObject;
    
    private void Start()
    {
        // referenences for the repawn pannel
        parentObject = GameObject.Find("Parent");// The name of the parent object
        childObject = parentObject.transform.GetChild(0).gameObject; // the parent index (starting from 0)
    }
}
Source

Also in C#: