diff --git a/index.html b/index.html index ef9a207..96a55f0 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,5 @@ - - - - @@ -11,48 +7,21 @@ - + - - - - - - - - - - - - + + + + - - - - + - - - The quickest of brown foxes. - - - - - - - - - - - - - \ No newline at end of file diff --git a/js/footer-functions.js b/js/footer-functions.js index c7d6a2c..897dd06 100644 --- a/js/footer-functions.js +++ b/js/footer-functions.js @@ -1,2 +1,17 @@ -w3IncludeHTML(); -document.write(''); +//w3IncludeHTML(); +//document.write(''); + +//slide 22 +squareofnumber(); + +//slide 23 +Rangeofnumbers(); + +//slide 24 +ReplaceArrayelements(); + +//slide 25 +Replaceelements(); + +//slide 26 +fibanocci(); diff --git a/js/slide22.js b/js/slide22.js index e69de29..5a83b22 100644 --- a/js/slide22.js +++ b/js/slide22.js @@ -0,0 +1,15 @@ +function squareofnumber(){ + var userinput=prompt("enter the square of number"); + + while(!(userinput>0) && (userinput<100)){ + console.log("the number =" +userinput); + } + + + var output=userinput*userinput; + + console.log("output=" +output); +} + + + diff --git a/js/slide23.js b/js/slide23.js index e69de29..3994b99 100644 --- a/js/slide23.js +++ b/js/slide23.js @@ -0,0 +1,12 @@ +function Rangeofnumbers(){ + var l=prompt("enter the lower limit of range of numbers"); + var u=prompt("enter the upper limit of range of numbers"); + + for(var i=l;i10) + { + i=prompt("Reenter the correct cell index between 1 and 10"); + // i=prompt("enter the value of cell index"); + } + var v=prompt("enter the value in replace elements"); + myData[i-1]=v; + console.log("Replaced Array Elements "+myData); +} diff --git a/js/slide26.js b/js/slide26.js index e69de29..b9f06b6 100644 --- a/js/slide26.js +++ b/js/slide26.js @@ -0,0 +1,16 @@ +function fibanocci(){ +var a=[]; +var f1=0; +var f2=1; +var f3; + console.log(+f1); + console.log(+f2); + var n=prompt("enter the number range for fibanocci"); + for(i=1;i<=n;i++) + { + f3=f1+f2; + console.log(+f3); + f1=f2; + f2=f3; + } +} \ No newline at end of file diff --git a/js/utils.js b/js/utils.js index bf0c12e..6fdcccd 100644 --- a/js/utils.js +++ b/js/utils.js @@ -19,8 +19,6 @@ function getAllMethodsOfObejct(obj) { return result; } - - function loadHtml(elementId, fileName) { $(elementId).html(''); };