October 2018
Intermediate to advanced
590 pages
15h 5m
English
Arrow functions do not have prototype objects, hence, they are not constructor functions. And they cannot be invoked with a new operator. An error will be thrown if you try that. Here's an example:
const WorkoutPlan = () => {};// Uncaught TypeError: WorkoutPlan is not a constructorlet workoutPlan = new WorkoutPlan(); console.log(WorkoutPlan.prototype); // undefined
Read now
Unlock full access