Compare commits
No commits in common. "2d9d2c15d744292586d382c9fa1463a339668055" and "2d729dad88702a8dc33bacc40ae11994ef2ad749" have entirely different histories.
2d9d2c15d7
...
2d729dad88
|
@ -35,34 +35,11 @@
|
|||
</body>
|
||||
|
||||
<script is:inline>
|
||||
let a = null;
|
||||
let b = 345;
|
||||
let c = true;
|
||||
// let d = BigInt("BifInt")
|
||||
let e = "JavaScript";
|
||||
let f = Symbol("I am a symbol");
|
||||
let g = undefined;
|
||||
// console.log(a, b, c, e, f, g)
|
||||
var x = 20;
|
||||
// a = "suvo";
|
||||
// a = "java";
|
||||
// console.log(typeof x)
|
||||
|
||||
|
||||
|
||||
|
||||
let data =[10, 22, 37, 48, 88, 92, 99, 100];
|
||||
let evenArray=[];
|
||||
for(let i=0;i<data.length;i++) {
|
||||
if (data[i]%2==0){
|
||||
evenArray.push(data[i])
|
||||
}
|
||||
|
||||
}
|
||||
for (let i=0;i<evenArray.length;i++) {
|
||||
evenArray[i]=evenArray[i]*2
|
||||
}
|
||||
// console.log(evenArray)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue