mirror of https://github.com/svaarala/duktape.git
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.
25 lines
252 B
25 lines
252 B
|
|
/*===
|
|
d
|
|
c
|
|
b
|
|
a
|
|
===*/
|
|
|
|
function f(a,b,c) {
|
|
if (a) {
|
|
print('a');
|
|
} else if (b) {
|
|
print('b');
|
|
} else if (c) {
|
|
print('c');
|
|
} else {
|
|
print('d');
|
|
}
|
|
}
|
|
|
|
f(false, false, false);
|
|
f(false, false, true);
|
|
f(false, true, false);
|
|
f(true, false, false);
|
|
|
|
|