Browse Source

Функции 2 (done)

Vladislav342 2 years ago
parent
commit
e31aa76d7b
1 changed files with 1 additions and 6 deletions
  1. 1 6
      HW_07/index.html

+ 1 - 6
HW_07/index.html

@@ -64,7 +64,6 @@
 		},1);
 		console.log(num); //15 
 
-
 		let num2=function(arr){
 			let res=1;
 			for(let i of arr){
@@ -87,7 +86,6 @@
 
 		function filter(obj,cb){
 			return Object.entries(obj).filter(e => cb(...e)).reduce((a,[b, c] = b) => (a[b] = c, a),{});
-
 		}
 
 		console.log(filter(phone,(key,value)=>key=='color'|| value==2));*/
@@ -101,7 +99,6 @@
 			return obj2;
 		}
 
-
 		console.log(map({name:"Ivan",age:17},function(key,value){
 			let result={};
 			result[key+'_']=value+'$';
@@ -117,8 +114,7 @@
 			}
 		}
 		console.log(sum(10));*/
-
-
+		
 
 //----------HTML Tree (blue belt - recursive) (done)
 		/*var someTree = {
@@ -172,6 +168,5 @@
 		document.write(str);*/
 		
 	</script>
-
 </body>
 </html>