Q.1 What will be the output of the following code snippet?
Q.2 What will be the output of the following code snippet?
Q.3 What will be the output of the following code snippet?
console.log([] + null + 1);
Q.4 What will be the output of the following code snippet?
function sum(a,a,c) {
return a+a+c
}
console.log(sum(1,2,3))
Q.5 What will be the output of the following code snippet?
"use strict";
const myObj = { id: 10, id: 20 };
console.log(myObj)