Open theRemix opened 7 years ago
for example in https://github.com/acdoyle630/js-functions-1/blob/master/functions.js#L118
if (x > y) { return true; } else { return false; }
x > y is an expression that evaluates to a boolean value. true or false
x > y
true
false
you can return this expression (while omitting if, else blocks)
if you do this, also refactor the others where you can also return an expression
for example in https://github.com/acdoyle630/js-functions-1/blob/master/functions.js#L118
x > y
is an expression that evaluates to a boolean value.true
orfalse
you can return this expression (while omitting if, else blocks)