Pretty up scripts with print.

This commit is contained in:
Stephen Chung
2020-05-02 16:23:36 +08:00
parent fc99b981a1
commit fc66a7ecef
11 changed files with 32 additions and 13 deletions

View File

@@ -7,6 +7,10 @@ fn addme(a, b) {
a + b; // notice that the last value is returned even if terminated by a semicolon
}
print(addme(a, 4)); // should print 46
print("addme(a, 4) should be 46:");
print(addme(a, 4));
print("a should still be 3:");
print(a); // should print 3 - 'a' is never changed