Static is used access the properties and functions directly wihout
class Employee {
getDepartment() {
return "HR"
}
}
const emp = new Employee();
console.log(emp.getDepartment());
This tutorial covers the latest javascript features, and private variables released in 2020. ES11 or ES2020 or EcmaScript2020 ..
Static is used access the properties and functions directly wihout
class Employee {
getDepartment() {
return "HR"
}
}
const emp = new Employee();
console.log(emp.getDepartment());