formatting 90% done; encapsulated everything in the TinyJS namespace, and renamed...
[tinyjs-rewrite.git] / .svn / pristine / b8 / b819a78fdf3aa9ba320fa71a0bc4f14a9fdbc869.svn-base
blob366f1d41568d1cd070923ad055904f62f541ed20
1 // built-in functions
3 foo = "foo bar stuff";
4 r = Math.rand();
6 parsed = Integer.parseInt("42");
8 aStr = "ABCD";
9 aChar = aStr.charAt(0);
11 obj1 = new Object();
12 obj1.food = "cake";
13 obj1.desert = "pie";
15 obj2 = obj1.clone();
16 obj2.food = "kittens";
18 result = foo.length==13 && foo.indexOf("bar")==4 && foo.substring(8,13)=="stuff" && parsed==42 && 
19          Integer.valueOf(aChar)==65 && obj1.food=="cake" && obj2.desert=="pie";