prefabs, why does my code not work?

Im trying to create an prefab at the x and y of my Spawner and the z of -0.1272979 however when I this code is executed, it gives the an error saying The prefab you want to instantiate is null.
when I created the prefab, I selected new prefab, and dragged the object I wanted into the prefab and renamed it EggPrefab. why does this not work?

var cube = Instantiate(Resources.Load("EggPrefab"), Vector3 (transform.position.x, transform.position.y, -0.1272979), Quaternion.identity);

There needs to be a prefab named “EggPrefab” inside a folder named “Resources”

Resources.Load can only see the Resources folder (capitalization might not matter for the folder name)

that worked, thanks