A judge also told the girl Friday that she must undergo therapy, delete her Facebook account and perform community service.
The girl had pleaded guilty. The Associated Press generally doesn’t name juveniles charged with crimes.
Police say she gave birth Sept. 30 at her mother’s apartment in Omaha, Nebraska, tossed the child out the window, then told her mom.
Douglas County Attorney Don Kleine has said that what the girl did wasn’t planned, that “it was more of a panicked reaction.” An autopsy determined the baby was in her seventh month of development.