Question: Your code is producing the error: TypeError: Cannot read property 'reduce' of undefined. What does that mean?

  1. You are calling a method named reduce on an object that's declared but has no value.
  2. You are calling a method named reduce on an object that does not exist.
  3. You are calling a method named reduce on an empty array.
  4. You are calling a method named reduce on an object that's has a null value.

Answer: The correct answer of the above question is Option A:You are calling a method named reduce on an object that's declared but has no value.