Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

The reduce and reduceRight methods follow a common operation called __________

a) filter and fold
b) inject and fold
c) finger and fold
d) fold

Answer: b
Explanation: The reduceRight() method reduces the array to a single value. The reduceRight() method executes a provided function for each value of the array (from right-to-left). The return value of the function is stored in an accumulator (result/total). Hence it does the operation of injecting and folding.

Join The Discussion