You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
371 B

var t;
/*===
1 2 3
3
===*/
print(1,2,3)
print((1,2,3))
/*===
foo
bar
undefined
foo
bar
3
===*/
/* This parses as: (t = print('foo')), (print('bar')), (1+2);
* So 't' gets return value of print('foo') = undefined.
*/
t = print('foo'), print('bar'), 1 + 2;
print(t);
t = (print('foo'), print('bar'), 1 + 2);
print(t);
/*===
3
===*/
t = eval("1, 2, 3");
print(t);