I was recently reading this cloudfare article about JavaScript Denial Of Service and I didn't understand how it could work. From what I've learned JavaScript is a client side language and can't interact with a server (please correct me if I'm wrong, I've been coding for a year and I'm still a n00b =3). I tried to add my own twist on it. But A. it's not effective (I didn't think it would be) and B. I didn't notice any change in traffic. The actual code is located if you want to take a look at it. I understand it wouldn't be too effective to even do it in JavaScript and especially with one computer.
So my question is, how would you do it. I just don't understand how it could work even after reading the cloudflare article and there's not a lot of discussion about it