added boolean operators

This commit is contained in:
Marvin Kaiser
2020-01-20 16:01:25 +01:00
parent 1186bb4550
commit d27df13ec1
11 changed files with 126 additions and 1 deletions

View File

@@ -162,4 +162,16 @@ function myFor(end) {
return x;
}
function and(a, b) {
return (a && b);
}
function or(a, b) {
return (a || b);
}
function not(a) {
return (!a);
}
add(1, 1);