X367: Add Fours

Return the sum of all fours in a given array.

Examples:

addFours({4}) -> 4
addFours({0}) -> 0
addFours({4,4}) -> 8

Your Answer:

Feedback

Your feedback will appear here when you check your answer.