Check out example codes for "ruby plus plus". It will help you in understanding the concepts better.

Code Example 1

# There is no ++ in Ruby! Use this instead:
i += 1

Learn ReactJs, React Native from akashmittal.com