Browse Source

Замыкание (done)

Vladislav342 2 years ago
parent
commit
8086cec696
1 changed files with 4 additions and 1 deletions
  1. 4 1
      HW_09/index.html

+ 4 - 1
HW_09/index.html

@@ -29,6 +29,7 @@
 		alert(fib(10));
 		timer();*/
 
+
 //-----------makeSaver
 		/*function makeSaver(fn){
 			let x=fn();
@@ -49,6 +50,7 @@
     	var value4 = saver2();
     	console.log(value3 === value4);*/
 
+
 //-----------Final Countdown
 		/*(function count(){
 			let x=5;
@@ -62,6 +64,7 @@
 			},1000)
 		})();*/
 
+
 //------------myBind
 		function myBind(fn,context,args){
 			return function(){
@@ -76,7 +79,7 @@
 		console.log(cube(3));   //27
 
 		var chessMin = myBind(Math.min, Math, [undefined, 4, undefined, 5,undefined, 8,undefined, 9]);
-		console.log(chessMin(-1,-5,3,15)); //NaN ???
+		console.log(chessMin(-1,-5,3,15)); 
 
 		var zeroPrompt = myBind(prompt, window, [undefined, "0"]);