javascript file is getting marked as “malware” by windows defender

I was trying to download this file off of github because I wanted to try to learn some javascript https://github.com/rohan-paul/Awesome-JavaScript-Interviews/blob/master/Javascript/ES6-Array-Helper-Methods/destructuring.js

it gets marked as a virus by windows defender
This is what windows defender marks the javascript file as malware
Anyone know why this is happening to me?

If I turn off windows defender and download the file it cant mark it as malware but if I turn it back on and open the javascript file it removes it