what kind of a work is it?
It is a British 19th-century fairy tale story.
Introduction
"Goldilocks and the Three Bears" (originally titled "The Story of the Three Bears") is a British 19th-century fairy tale of which three versions exist. The original version of the tale tells of a badly-behaved old woman who enters the forest home of three bachelor bears whilst they are away. She sits in their chairs, eats some of their porridge, and sleeps in one of their beds. When the bears return and discover her, she wakes up, jumps out of the window, and is never seen again. The second version replaced the old woman with a little girl named Goldilocks, and the third and by far best-known version replaced the original bear trio with Papa Bear, Mama Bear and Baby Bear (who is not actually an infant, but rather a small cub).
when was goldilocks and the three bears written In 1837.
It is a British 19th-century fairy tale of which three versions exist. Fairy tale A  fairy tale
Goldilocks and the Three Bears Goldilocks and the Three Bears Goldilocks and the Three Bears
Introduction Introduction Introduction
"Goldilocks and the Three Bears" (originally titled "The Story of the Three Bears") is a British 19th-century fairy tale of which three versions exist.  Goldilocks and the Three Bears" (originally titled "The Story of the Three Bears") is a British 19th-century fairy tale of which three versions exist. The original version of the tale tells of a badly-behaved old woman who enters the forest home of three bachelor bears whilst they are away. She sits in their chairs, eats some of their porridge, and sleeps in one of their beds. Wh  fairy tale 
wiki:23835273
Goldilocks and the Three Bears [SEP] Introduction
"Goldilocks and the Three Bears" (originally titled "The Story of the Three Bears") is a British 19th-century fairy tale of which three versions exist. The original version of the tale tells of a badly-behaved old woman who enters the forest home of three bachelor bears whilst they are away. She sits in their chairs, eats some of their porridge, and sleeps in one of their beds. When the bears return and discover her, she wakes up, jumps out of the window, and is never seen again. The second version replaced the old woman with a little girl named Goldilocks, and the third and by far best-known version replaced the original bear trio with Papa Bear, Mama Bear and Baby Bear (who is not actually an infant, but rather a small cub).