JavaScript Challange 100 day with Mukhriddin (Part 1)

RMAG news

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

// What is the value of “n” ?

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

Please follow and like us:
Pin Share