Assalamualaikum warahmatullahi wabarakatuh!
Bismillah, today we started a 100 day javascript challenge. Daily challenge questions will be posted on our Telegram page and we will constantly share the solutions on the dev.to platform! Barakallahu feekum!
#CHALLANGE1
let x = 100;
let y = x++;
let z = ++x;
let n = (x==y) ? z++ : ++z;
console.log(n); // 103
#CHALLANGE2
// What is the output?
const f=new Boolean(false);
if (f){
console.log(1);
}else{
console.log(2);
}
console.log(typeof f);
// output : 1 , object