Challenge: Counting Animals
This challenge will test you on implementing the "static" keyword in JavaScript.
We'll cover the following...
Problem statement #
Study the code below and then run it.
Press + to interact
class Animal {constructor() {this.count = 0;}static increaseCount() {this.count += 1;}static getCount() {return this.count;}}function test(){Animal.increaseCount();console.log(Animal.getCount());}test()
Your task ...