Hey there, curious coders! 👋 Today, we’re diving into one of the most asked questions in the JavaScript world: Is JavaScript synchronous or asynchronous ? Spoiler alert: It’s both! 🎉 Sounds confusing? Don’t worry! By the end of this post, you’ll to...
Lets create a class , Staff : class Staff { constructor(empName, empId, dept, doj) { this.empName = empName; this.empId = empId; this.dept = dept; this.doj = doj; } //methods are added to the prototype property of the class em...