I once had a script looking like the one below:
it had some strange laggy effects... Anyways, a friend "pranked" me by running the script overnight. My PC had a shutdown timer, but when I went to turn it on, it said that one of the CPU cores was failing to respond. Later I found out that it got fried.
My point is, can JS scripts like this really be used to damage your data nowadays?Or worse, damage your computer like it did to mine? If so, how common is it? I haven't noticed such scripts before until recently again. I'm more worried about my data then my hardware.