Jupyter Notebook download without save

I want to ask a question.

Yesterday I was taking an ML exam and we were using Jupyter Notebook. I needed to download the file and send it to my teacher. Because I was in a rush, I just clicked download without saving the file. Mind you, I was writing this file for about an hour.

Now I am worried if the code I was writing was saved and if the teacher can see it.

Does Jupyter Notebook have autosave?

Thanks