« first day (2624 days earlier)      last day (1478 days later) » 

 
3 hours later…
6:26 AM
i basically have a new function which implements the AND and i have to return an operator. my thoughts at first would be
if (e1 == 0 && e2 == 0) {
return op.MUL
}
else if (e1 == 0 && e2 == 1) {
return op.MUL
}
else if (e1 == 0 && e2 == 1) {
return op.MUL
}
else if (e1 == 1 && e2 == 1) {
return op.EQ
}
what do you think of this as an answer?
 
1 message moved from JavaScript
 
 
6 hours later…
12:05 PM
here is the code below ``` const url = 'https://pomber.github.io/covid19/timeseries.json';

fetch(url)
.then(res=> res.json())
.then(result=> {
result['Bangladesh'].forEach(({date, confirmed, recovered, deaths})=> {
affect_count_bd.innerHTML = confirmed;
good_count_bd.innerHTML = recovered;
die_count_bd.innerHTML = deaths;

});
const totalResult = Object.keys(result);

// console.log(totalResult[0])

totalResult.forEach((total, i)=> {
// console.log(total)
total_country.innerHTML = i+1;
// result[total].map(v=> console.log(Number(v.recovered )))
 
1 message moved from JavaScript
 
 
2 hours later…
 
1 hour later…
 
3 hours later…
7:13 PM
only for coders no advertising
 
Zoe
2 messages moved from Java
 
8:25 PM
hi
 

« first day (2624 days earlier)      last day (1478 days later) »