diff --git a/index.html b/index.html index 3eb4344..efae204 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - Base template + Lecture_7 @@ -9,7 +9,7 @@

- Base template + Lecture_7

\ No newline at end of file diff --git a/js/main.js b/js/main.js index e69de29..f117e07 100644 --- a/js/main.js +++ b/js/main.js @@ -0,0 +1,322 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +// object.key=undefined; + +// if(object.key1!==undefined){ + // console.log("no resalt"); +// } +// if("key1" in object){ + // console.log("has resalt"); +// } +// for(var key in object){ + // console.log(object[key]); +// } + +// var obj={ + // "1":"value1", + // "25":"value2", + // "10":"value3", + // "test1":"value4", + // "asd":"value5", + // "15":"value6" +// } +// for(var key in obj){ + // console.log(key); +// } + +// var keys=Object.keys(obj); +// console.log(keys); + +// for(var i=0;ib) + // // return 1; +// // }); +// sortedArray.sort(function(a,b){ + // return a-b; +// }); +// console.log(sortedArray); + +// var sortedArray=["Art","BEst","rest","cmd"]; +// sortedArray.sort(function(string1,string2){ + // if(string1.toLowerCase()>string2.toLowerCase()) + // return 1; + // if (string1.toLowerCase()