Sfoglia il codice sorgente

pow checks added to hw9. hw10 task started. table creation function, option select written

miskson 3 anni fa
parent
commit
890a8d0627
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      hw9/first-part/script.js

+ 3 - 0
hw9/first-part/script.js

@@ -66,6 +66,9 @@ let myBind = function myBind(func, context, [...args]) {
 
 let pow5 = myBind(Math.pow, Math, [undefined, 5])
 console.log(pow5(2))
+console.log(pow5(3))
+console.log(pow5(1))
+
 console.log(Math.pow.apply(Math, [2,5]))
 
 var chessMin = myBind(Math.min, Math, [undefined, 4, undefined, 5,undefined, 8,undefined, 9])