Thursday, June 1, 2017

22nd class at 18.05.2017

Today is uki 22nd class
Today dived 4 group and give four titles and present about the topic. 
1) Data type
<p id="demo"></p>
<script>
var x=15
"valvo";
document.getElementById("demo").innerHTML = x;
</script>

2)Variables
<script>
var price1=5;
var price2=6;
var total=price1+price2

3)For loop
var i
for(x=0; x<10; i++)
{text="the number is "+x+"<br>";}
document.wite(text);

4)Array
var furits=["banana","Orange","Apple"];

5)Arry sort
var name=["shama","dilani","janu"];
name.sort();

var name=["shama","dilani","janu"];
name.reversing();

var number=[12, 36,85,2,89,25];
  number.sort(function(a,b){retrna-b)};

var number=[12, 36,85,2,89,25];
  number.sort(function(a,b){retrn b-a)};

4) Ramdom
var point=[40,45,98,56,85,65];
pont.sort(function(a,b){return 0.5-math.random()});

5)Function
function f.Name(){
}

6)Condition
if(1<18){
documet.wirte("hello")
}
else
{
document.write("haii")

thankyou next i meet jQuery bye......

No comments:

Post a Comment