Declaring a variable in arithmetic (Ruby)


#1



https://www.codecademy.com/en/courses/ruby-beginner-en-d1Ylq/3/2?curriculum_id=5059f8619189a5000201fbcb

I am just unsure how to correctly declare the variable.

(ruby): syntax error, unexpected '=', expecting $end
13 + 379 = 392
^

Replace this line with your code.


#2

to declare a variable you type its name, an equals sign, and its value.

e.g.

difference = 9 - 7


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.