MacBook Air crashing once or twice a day
Recently my macbook air has been running into problems that have been scaring me, It has been crashing once or twice a day. I start online classes in a month and im afraid that it will crash during classes or when i have to write code. I know macs can run slow if to many applications are open at once but recently it crashed with only chrome and discord open. I have other games installed too like minecraft, League of Legends and Terraria but i havent ran into problems with thoes. if anyone can help that will be great
MacBook Air 13″, macOS 10.13