JavaScript programs

JavaScript programs

Share

10/11/2022

In programming, you use conditionals to know which block of code to execute when certain conditions are met.

And in SQL, you can use the CASE statement (along with WHEN, THEN, & ELSE) to do this.

24/08/2021

http://www.Daso.edu.org

alert('Please Upvote')


body{
background-color: ;
}
.red{
width: 90px;
height: 90px;
border-radius: 50px;
border-style: solid red;
color: steelblue;
background-color: red;
margin-left: 10px;
margin-top: 10px;
}
.green{
width: 90px;
height:90px;
border-radius: 50px;
border-style: solid rgb(0,255,64);
background-color: rgb(0,255,64);
margin-left: 10px;
margin-top: 10px;
}
.yellow{
width: 90px;
height:90px;
border-radius: 50px;
border-style: solid (245,252,3);
background-color:rgb(245,252,3);
margin-left: 10px;
margin-top: 8px;

}
.green:active{
background-color:rgba(0,255,0);
}

.main{
width: 115px;
height: 305px;
background: linear-gradient(90deg, blue, yellow, rgb(204,204,255));
border:solid black;
background-color: ;
border-radius: 10px;
box-shadow: 0 10px 0 10px rgb(37,37,37);
margin-left: 200px;
}
.poor{
width: 30px;
height: 200px;
border-style: none;
background: repeating-linear-gradient( 90deg,
silver 0px,
green 40px,
orange 40px,
pink 80px);
margin-left: 40px;
margin-top: 20px;
border-top: solid black;
border-bottom: solid black;
}
{
width: 100px;
height:70px;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
background-color: #000;
margin-bottom: 50px;
margin-left: 7px;
}
h1{
text-align: center;
}
footer{
text-align: center;
color:blue;
}



Street Light






©right:2020 Nov 2 nd By:Engineer Abunku Emmanuel Terdoo

14/08/2021

ages= [12,34,15,5,35,45,33,23,17,27,28,18];
//sort age in ascending order
const sortAge=ages.sort(
((a,b)=>a-b),0);
console.log(sortAge);
// multiply ages by two
const ageTimesTwo=ages.map(age=>age*2);
console.log(ageTimesTwo);
//filter ages
for(let i=0; ib-a),0);
console.log(sortAges);
//sum all ages using for loop
let sumAge= 0;
for( let i=0; i total + ages, 0);
console.log(agesSum);
// find the sqrt of ages
const sqrootAge= ages.map(ages=> Math.sqrt(ages));
console.log(sqrootAge);
//find the sqroot and ages times two
const ageComplex= agesmap(ages=>Math.sqrt(ages)) map(ages=>ages*2);
console.log(ageComplex);

Want your school to be the top-listed School/college in Abuja?
Click here to claim your Sponsored Listing.

Category

Telephone

Address


Abuja