1main();
2function myFunction(x,y){
3 if((x >=40 && x <=60)||(y >=40 && y <= 60)){
4 if(a>b){
5 return console.log(a);
6 }
7 else{
8 return console.log(b);
9 }
10 }
11 else{
12 return false
13 }
14}
15myFunction(39,61);
16myFunction(45,61);
17myFunction(25,59);
18myFunction(45,55);
19
1function shourtcut(s1,s2) {
2let chars1 = s1.charAt(0);
3let chars2 = s2.charAt(0);
4console.log(chars1 + chars2);
5return chars1 + chars2;
6}
1var total = 0;
2var limit = 10;
3
4for (var i=0; i<limit; i++) {
5 total+=i
6};
7console.log(total);