A simple example demonstrating use of static & instance variables and the fat arrow (=>
).
CS stores static properties and methods on the class itself, not on the prototype. Hence, class variables do not conflict with identically named instance variables.