Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

name error on ruby

irb
2.7.3 :001 > a_variable
NameError (undefined local variable or method `a_variable' for main:Object)
2.7.3 :002 > a_variable = 7
 => 7
2.7.3 :003 > a_variable
 => 7
Source by learning.flatironschool.com #
 
PREVIOUS NEXT
Tagged: #error #ruby
ADD COMMENT
Topic
Name
7+6 =