Screen freezing?


#1

Every time I want to run any code, the tab freezes and I can't do anything on this page but the rest of the browser works perfectly


#2

Hey, glitch or an infinite loop.. Close browser and open again


#3

I don't think it is an infinity loop and also I tried to close and open again but it still freezes


#4

What browser are you using?
Is this only happening for one specific lesson or any lesson any course?


#5

I also just figured out, if I have 2 codecademy pages on at the same time, it freezes them regardless if I'm on the Q&A Fourm or anywhere


#6

I am using Google Chrome


#7

Search Text For Your Name
Lesson #3


#8

I'm using Chrome as well have many tabs open at the same time haven't experienced a problem..

Just freezes no error?


#9

No it just freezes up all my codecademy pages


#10

It will be an infinite loop, post your code


#11

/*jshint multistr:true */
var text = "Helo Blah blak hdauikg Anton lkadhkjshf blah pdaodp\
apdoodjidj Anton heell hbugbf"
var myName = "Anton"
var hits = []
for (i = 0 ; i = text.length ; i++) {

}


#12

This is creating an infinite loop.

change the = to a <

also you're missing some semi-colons

and needs to be var i = 0;


#13

Now it works!! Thanks!!


#14

If its JavaScript and someone's page keeps freezing/crashing 98% of the time it will be their code rather than the browser/operating system :wink:


#15

That's what I thought as well, he said it's not infinite loop


#16

Sorry I didn't know what you were talking about


#17

Np, @benjnev beat me in asking for code