We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5042a47 commit d7e1874Copy full SHA for d7e1874
chapters/classes_and_objects/class-variables.md
@@ -14,14 +14,14 @@ class Zoo
14
@MAX_ANIMALS: 50
15
MAX_ZOOKEEPERS: 3
16
17
-console.log Zoo.MAX_ANIMALS
+Zoo.MAX_ANIMALS
18
# => 50
19
20
-console.log Zoo.MAX_ZOOKEEPERS
+Zoo.MAX_ZOOKEEPERS
21
# => undefined (it is an instance variable)
22
23
zoo = new Zoo
24
-console.log zoo.MAX_ZOOKEEPERS
+zoo.MAX_ZOOKEEPERS
25
# => 3
26
{% endhighlight %}
27
0 commit comments