13 challenges match these filters
Each Basket should have its own items, so after adding one thing to a fresh basket, two_baskets('x', 'y') returns 1.
Scope error
add_all(nums) should return the sum of the numbers, so add_all([1, 2, 3]) returns 6.
Scope error
make_multipliers([2, 3, 4]) should build one multiplier per factor, so the FIRST one doubles: apply_first([2, 3, 4], 10) returns 20.
Scope error
last_even(nums) should return the last even number, or -1 if there are none. last_even([1, 3]) should return -1.
Scope error
countMatches(words, target) should count how many times target appears, so countMatches(["a","b","a"], "a") returns 2.
Scope error
Each tracker from makeTracker() should start at zero, so trackTwice(5, 3) returns 3 — the second tracker's own total.
Scope error
priceWithFee(base) should add a flat fee of 5 to the base price, so priceWithFee(10) returns 15.
Scope error
countAll(items) should count how many items were passed in, so countAll([1, 2, 3]) returns 3.
Scope error
describe(useLocal) should return "local" when useLocal is true and the outer "global" when it is false.
Scope error
make_baskets(first, second) should start a separate basket for each item, so make_baskets("apple", "bread") gives [["apple"], ["bread"]].
Scope error
collectIndexes(n) should schedule one callback per index and resolve to the list of indexes, so collectIndexes(3) gives [0, 1, 2].
Scope error
finalPrice(price, isMember) should apply a 10% discount for members and return the price to pay.
Scope error
findFirstNegative(nums) should return the first negative number in the array, or null if there isn't one.
Scope error