V
V
Vlad2021-01-12 19:31:47
JavaScript
Vlad, 2021-01-12 19:31:47

What to do if JS freezes?

I practiced JS and for the sake of experiment (what if?) I commented out a line of code, I go into the browser, and there, in the console, a bunch of 0s are generated. As the number of 0s increased, my computer started to freeze, at 50,000+ the computer completely hung.
And the question is what to do in such situations?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lord_Dantes, 2021-01-12
@vlad2147

Do not play with JS otherwise it will outplay you :)
Remove cycles or set a condition and revisit the page. Restart your computer if everything is so bad ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question