I've been having a crack at some of the problems over at http://projecteuler.net/ with JavaScript. I've been using a simple html page and running my code in script tags so I can log my results in the browsers' console. When experimenting with loops I sometimes cause the browser to crash.
Is there a better environment for me to do this kind of development?
This usually happens when objects are added to an array but are not removed from that array when they are no longer in use. Over time, these objects build up until the process crashes due to memory overload.
Check for Malware Malware can cause your browser to crash randomly or when you visit certain websites. Some malware redirects your Internet searches or even takes complete control over your browser. Microsoft recommends that you use the Microsoft Security Scanner to search for malware on your computer.
A virus, trojan or malware, do a good scan. Running out of memory, consider adding more RAM. Too many Tabs open already, delete some. Running too many extensions, remove some.
If you're running computationally expensive programs in your browser, you may want to look at using web workers. In short, they allow you to run code in a different thread which won't lock up the browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With