Created
April 10, 2014 22:14
-
-
Save boustrophedon/10428231 to your computer and use it in GitHub Desktop.
dart vs js. the most important test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dart version | |
void main() { | |
List<int> l = [1,10,5]; | |
l.sort(); | |
print(l); // [1, 5, 10] | |
} | |
// js version | |
var l = [1, 10, 5]; | |
l.sort(); | |
console.log(l); // [ 1, 10, 5 ] (it is sorted lexicographically) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment