Which code should you use?

You have the following code:

You need to retrieve all of the numbers from the items variable that are greater than 80.
Which code should you use?

You have the following code:

You need to retrieve all of the numbers from the items variable that are greater than 80.
Which code should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 3

Your email address will not be published. Required fields are marked *


fabrizio

fabrizio

D is correct too imho.

tne

tne

The question states:”retrieve ALL of the numbers from the items…”. Any ‘ll only check if at least one value is above 80 and just return true or false