Skip to main content
Mod Removes Wiki by Doorknob
edited body
Source Link
ajax333221
  • 3.7k
  • 3
  • 25
  • 29

Looping Tip I

You can save 1 character when looping by changing the i on the last time used:

//not so god
for(i=0;i<3;i++){
  alert(i);
}

//best
for(i=0;i<3;){
  alert(++ii++);
}

Note: works with -- too (but modify the loop accordingly to avoid infinite looping)


Looping Tip II

There are certain scenarios where you can save one character by playing with the incrementing operator and values:

for(i=0;i++<9;)
for(i=0;++i<10;)

Note: you need to pay attention when for example 0 to -1. and 9 to 10, 99 to 100, so play around until you find a way to save the character

Looping Tip I

You can save 1 character when looping by changing the i on the last time used:

//not so god
for(i=0;i<3;i++){
  alert(i);
}

//best
for(i=0;i<3;){
  alert(++i);
}

Note: works with -- too (but modify the loop accordingly to avoid infinite looping)


Looping Tip II

There are certain scenarios where you can save one character by playing with the incrementing operator and values:

for(i=0;i++<9;)
for(i=0;++i<10;)

Note: you need to pay attention when for example 0 to -1. and 9 to 10, 99 to 100, so play around until you find a way to save the character

Looping Tip I

You can save 1 character when looping by changing the i on the last time used:

//not so god
for(i=0;i<3;i++){
  alert(i);
}

//best
for(i=0;i<3;){
  alert(i++);
}

Note: works with -- too (but modify the loop accordingly to avoid infinite looping)


Looping Tip II

There are certain scenarios where you can save one character by playing with the incrementing operator and values:

for(i=0;i++<9;)
for(i=0;++i<10;)

Note: you need to pay attention when for example 0 to -1. and 9 to 10, 99 to 100, so play around until you find a way to save the character

deleted 66 characters in body
Source Link
ajax333221
  • 3.7k
  • 3
  • 25
  • 29

Looping Tip I

You can save 1 character when looping by changing the i on the last time used:

//not so god
for(i=0;i<3;i++){
  alert(i);
}

//best
for(i=0;i<3;){
  alert(++i);
}

Note: works with -- too (but modify the loop accordingly to avoid infinite looping)


Looping Tip II

There are certain scenarios where you can save one character by playing with the incrementing operator and values:

for(i=0;i++<9;)
for(i=0;++i<10;)
 
//and

for(i=11;i--;)
for(i=11;--i>-1;)

Note: you need to pay attention when for example 0 to -1. and 9 to 10, 99 to 100, so play around until you find a way to save the character

Looping Tip I

You can save 1 character when looping by changing the i on the last time used:

//not so god
for(i=0;i<3;i++){
  alert(i);
}

//best
for(i=0;i<3;){
  alert(++i);
}

Note: works with -- too (but modify the loop accordingly to avoid infinite looping)


Looping Tip II

There are certain scenarios where you can save one character by playing with the incrementing operator and values:

for(i=0;i++<9;)
for(i=0;++i<10;)
 
//and

for(i=11;i--;)
for(i=11;--i>-1;)

Note: you need to pay attention when for example 0 to -1. and 9 to 10, 99 to 100, so play around until you find a way to save the character

Looping Tip I

You can save 1 character when looping by changing the i on the last time used:

//not so god
for(i=0;i<3;i++){
  alert(i);
}

//best
for(i=0;i<3;){
  alert(++i);
}

Note: works with -- too (but modify the loop accordingly to avoid infinite looping)


Looping Tip II

There are certain scenarios where you can save one character by playing with the incrementing operator and values:

for(i=0;i++<9;)
for(i=0;++i<10;)

Note: you need to pay attention when for example 0 to -1. and 9 to 10, 99 to 100, so play around until you find a way to save the character

deleted 2 characters in body
Source Link
Shmiddty
  • 1.2k
  • 7
  • 16

Looping Tip I

You can save 1 character when looping by changing the i on the last time used:

//not so god
for(i=0;i<3;i++){
  alert(i);
}

//best
for(i=0;i<3;){
  alert(++i);
}

Note: works with -- too (but modify the loop accordingly to avoid infinite looping)


Looping Tip II

There are certain scenarios where you can save one character by playing with the incrementing operator and values:

for(i=0;i++<9;)
for(i=0;++i<10;)

//and

for(i=11;i-->0;;)
for(i=11;--i>-1;)

Note: you need to pay attention when for example 0 to -1. and 9 to 10, 99 to 100, so play around until you find a way to save the character

Looping Tip I

You can save 1 character when looping by changing the i on the last time used:

//not so god
for(i=0;i<3;i++){
  alert(i);
}

//best
for(i=0;i<3;){
  alert(++i);
}

Note: works with -- too (but modify the loop accordingly to avoid infinite looping)


Looping Tip II

There are certain scenarios where you can save one character by playing with the incrementing operator and values:

for(i=0;i++<9;)
for(i=0;++i<10;)

//and

for(i=11;i-->0;)
for(i=11;--i>-1;)

Note: you need to pay attention when for example 0 to -1. and 9 to 10, 99 to 100, so play around until you find a way to save the character

Looping Tip I

You can save 1 character when looping by changing the i on the last time used:

//not so god
for(i=0;i<3;i++){
  alert(i);
}

//best
for(i=0;i<3;){
  alert(++i);
}

Note: works with -- too (but modify the loop accordingly to avoid infinite looping)


Looping Tip II

There are certain scenarios where you can save one character by playing with the incrementing operator and values:

for(i=0;i++<9;)
for(i=0;++i<10;)

//and

for(i=11;i--;)
for(i=11;--i>-1;)

Note: you need to pay attention when for example 0 to -1. and 9 to 10, 99 to 100, so play around until you find a way to save the character

deleted 350 characters in body
Source Link
ajax333221
  • 3.7k
  • 3
  • 25
  • 29
Loading
deleted 36 characters in body
Source Link
ajax333221
  • 3.7k
  • 3
  • 25
  • 29
Loading
added 10 characters in body
Source Link
ajax333221
  • 3.7k
  • 3
  • 25
  • 29
Loading
added 636 characters in body
Source Link
ajax333221
  • 3.7k
  • 3
  • 25
  • 29
Loading
added 636 characters in body
Source Link
ajax333221
  • 3.7k
  • 3
  • 25
  • 29
Loading
Source Link
ajax333221
  • 3.7k
  • 3
  • 25
  • 29
Loading