We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
inputValue
1 parent f27488c commit f5c8249Copy full SHA for f5c8249
src/assigning-to-input-param/index.js
@@ -1,6 +1,6 @@
1
export function discount(inputValue, quantity) {
2
let result = inputValue;
3
- if (result > 50) result = result - 2;
+ if (inputValue > 50) result = result - 2;
4
if (quantity > 100) result = result - 1;
5
return result;
6
}
0 commit comments