Understanding fast pedestal dynamics and turbulent transport in the edge and scrape-off layer (SOL) plasma of spherical tokamaks is crucial for the design and operation of future fusion reactors. The alkali beam emission spectroscopy diagnostic technique offers a means to measure the absolute electron density radial profile and fluctuation amplitude in these regions. In this study, we demonstrate that injecting a sodium neutral beam radially into the plasma and analyzing the light emission from its 3p-3s atomic transition using near-orthogonal viewing angles allows for accurate measurement of the electron density profile and fluctuations in the National Spherical Torus Experiment (NSTX) Upgrade spherical tokamak. Our findings indicate a peak signal-to-noise ratio of 118 in the pedestal and 12 in the SOL under typical NSTX plasma conditions. The spatial resolution for the electron density profile is estimated to be between 2 and 8mm, while for fluctuation measurements, it ranges from 12 to 15mm.