Static Method
A class method called on the class itself rather than an instance.
What is Static Method in JavaScript?
Static Method — A class method called on the class itself rather than an instance.
class Price {
static withTax(amount) {
return amount * 1.08;
}
}
Level: Journeyman · More JavaScript terms at this level
Updated