I think the instructions on here have proofreading errors? They say:
But I am guessing that:
MethodName is actually supposed to be method_name
and
@classVariable is actually supposed to be @class_Variable
???
I think the instructions on here have proofreading errors? They say:
But I am guessing that:
MethodName is actually supposed to be method_name
and
@classVariable is actually supposed to be @class_Variable
???
Thank you, @melissatarantola, for reporting this.
I have reported this to the Codecademy engineering team.
hi, earlier it was said that class variable starts with " @@ " whereas in above instructions it’s starting with " @ " which is an instance variable? whats the real thing?
Good point. Given the variable name without the @
is class_Variable
, it seems we could safely assume it is a class variable, and should therefore be @@class_Variable
. It’s also curious that they’ve seemingly combined snake_case and camelCase. Maybe it’s a new naming convention called snamel_Case? I’m no Ruby expert, so maybe that’s normal, but I doubt it.