Exploring Objects : class

by Cristi Salcescu

JavaScript

class Timer{
	constructor(){
  	this.token = 0;
  }
  
  start() {}
  stop() {}  
}
Object.freeze(Timer.prototype);

let timer= new Timer();
console.log(timer.__proto__ === Timer.prototype);