Ruby doesn't have an increment operator

Written by Michael Lee on October 19, 2015

Coming from JavaScript, I had no idea that Ruby doesn’t have an increment operator like ++. It turns out that the author of Ruby, matz suggests the official way to increment and decrement variables in ruby is by using the += and -= operators.

Thanks for taking the time to read this article. I'd love to stay in touch and share more tips on programming and design, side projects and working remotely. Sign up and I'll send you my articles straight to your email.

:wave: Hey hey, I'm Michael Lee! I really appreciate you taking the time to read this article.

Be sure to check out my other articles.

Previous post: Over 3