How would I call the static function calculator()?. I know a static function does not need an instance of the class to be called. However, trying the following wont work:
class TaxCalculator {
static calculator(total) {
return total * .05;
}
}
new TaxCalculator().calculator(50);