Beginner1111 Beginner1111 - 3 months ago 18
Ruby Question

Syntax error, unexpected keyword_end and unexpected end_of_input

enter image description here

I don't know why i am getting this error

Answer

++ operator doesn't exist in Ruby. Just use += 1.