My code got deleted by someone is there way to get it back

My code got deleted by someone is there way to get it back

Hi @azareswYTcodes , welcome to the forums! In the code area, look for the History button at the bottom of the tab. Rewind to the bit before you deleted youelr code, and copy and past that back in.
Alternatively, try pressing CTRL+Z.