Javascript and {}

Stereomike

Client
Регистрация
29.03.2011
Сообщения
221
Благодарностей
30
Баллы
0
In the javascript tester, I get an error for this:

var tmpBest=100000;
for(i=1;i<7;i++)
{tmpBest=100000};

Any chance to get loops to work?
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
  • Спасибо
Реакции: Stereomike

Stereomike

Client
Регистрация
29.03.2011
Сообщения
221
Благодарностей
30
Баллы
0
Of course it does nothing, Bulldozer, it was just an example stripped down to the smallest possible code :-)
Thanks for var=i, didn't knew thought the tester couldn't work with temporary variables.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)