Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

Which expression will not return a sum of array elements in Ruby on Rails?

None of them. All will return the sum.
sum = 0; array.each { |e| sum += e }; sum
array.inject { |sum, e| sum + e }
array.inject(:+)
array.sum
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon