Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

javascript ``done right''

Name: Anonymous 2013-02-10 13:57

ok, since you faggots have nothing better to do than diss javascript even after i've totally destroyed your arguments, i'm giving you the opportunity to put your dad's money where your mouth is and try to convince me how it could be ``improved''

this is going to be entertaining to say the least

Name: Anonymous 2013-02-10 15:14

Name: Anonymous 2013-02-10 15:15

Name: Anonymous 2013-02-10 15:15

Name: Anonymous 2013-02-10 15:15

Name: Anonymous 2013-02-10 15:15

Name: Anonymous 2013-02-10 15:15

Name: Anonymous 2013-02-10 15:15

Name: Anonymous 2013-02-10 15:15

fuck am i banned or what?

Name: Anonymous 2013-02-10 15:16

Name: Anonymous 2013-02-10 15:16

Name: Anonymous 2013-02-10 15:16

testing in test board.

Name: Anonymous 2013-02-10 15:16

Name: Anonymous 2013-02-10 15:16

Name: Anonymous 2013-02-10 15:16

Name: Anonymous 2013-02-10 15:16

Name: Anonymous 2013-02-10 15:17

Name: Anonymous 2013-02-10 15:17

egin

Name: Anonymous 2013-02-10 15:17

Name: Anonymous 2013-02-10 15:17

Name: Anonymous 2013-02-10 15:17

Name: Anonymous 2013-02-10 15:17

Name: Anonymous 2013-02-10 15:17

Name: Anonymous 2013-02-10 15:18

Name: Anonymous 2013-02-10 15:18

Name: Anonymous 2013-02-10 15:18

Name: Anonymous 2013-02-10 15:18

Name: Anonymous 2013-02-10 15:18

Name: Anonymous 2013-02-10 15:22

Automatic type conversion between strings and numbers, combined with '+' overloaded to mean concatenation and addition. This creates very counterintuitive effects if you accidentally convert a number to a string:

 var i = 1; 
 // some code
 i = i + ""; // oops!
 // some more code
 i + 1;  // evaluates to the String '11'
 i - 1;  // evaluates to the Number 0

The automatic type conversion of the + function also leads to the intuitive effect that += 1 is different then the ++ operator:

 var j = "1";
 j++; // j becomes 2
 
 var k = "1";
 k += 1; // k becomes "11"

Name: Anonymous 2013-02-10 15:25

>>148
"11" - 1
10

Name: Anonymous 2013-02-10 15:26

Name: Anonymous 2013-02-10 15:26

Name: Anonymous 2013-02-10 15:26

Name: Anonymous 2013-02-10 15:27

Name: Anonymous 2013-02-10 15:27

Name: Anonymous 2013-02-10 15:27

Name: Anonymous 2013-02-10 15:27

>>57
because he's already using his script to sagespam

Name: Anonymous 2013-02-10 15:28

"I'm not the OP and I absolutely don't go on /g/! I'm /g/reentexting le ironically! XD"
- >>42

Name: Anonymous 2013-02-10 15:28

Name: Anonymous 2013-02-10 15:28

Name: Anonymous 2013-02-10 15:29


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List