What would be the output?

@Yomesh Gupta
const first = 6;
const second = "6";
const third = first + second;
const fourth = first - second;
const fifth = third + first * first;
const sixth = fourth + second * second;

console.log("Fifth is --", fifth, typeof fifth);
console.log("Sixth is --", sixth, typeof sixth);
Option 1
Fifth is -- 1236 string
Sixth is -- 6666 string
Option 2
Fifth is -- 6636 string
Sixth is -- 36 number
Option 3
Fifth is -- 1266 string
Sixth is -- 66 number
Option 4
Fifth is -- 6666 string
Sixth is -- 36 string
Do you see value in our efforts?

Devtools Tech is a free platform for Frontend Engineers. It takes a lot of time, effort, and finanical resources to keep the platform running. If you see any value in our work and would like to support us then you can do using the following options.

InternationalDomestic