Другой пример bind ()

 
	 class Person
	 {
	constructor(name)
		 {
			 this.name = name;
		 
		 function getName()
				 {console.log(this.name);
				 }

			let consoleName =	 getName.bind(this);
				 consoleName();
		 }	
	 }
	 
Javasper