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

@@ -3,12 +3,12 @@ let b = 123;
let x = 999;
if a > b {
print("a > b");
print("Oops! a > b");
} else if a < b {
print("a < b");
print("a < b, x should be 0");
let x = 0; // this 'x' shadows the global 'x'
print(x); // should print 0
} else {
print("a == b");
print("Oops! a == b");
}