-
let a=3; let b = new Number(3); let c=3;
console.log(a == b); console.log(a === b); console.log(b === c);
- A:
true false true
- B:
false false true
- C:
true false false
- D:
false true true
- A:
-
What will be the output of the following code?
const telegramGroup = { name: 'TeamDevkode' } const { name: TDK } = telegramGroup; console.log(TDK);
- A:
null
- B:
Error will be thrown
- C:
TeamDevkode
- D:
undefined
- A:
-
What will be the output?
let myName = 'Sunny'; let groupName = myName; myName = 'DevKode'; console.log(groupName); const obj1 = { id:1, name:"Sunny", } const obj2 = obj1; obj2.name = 'DevKode'; console.log(obj1);
- A:
Sunny , { id: 1, name: 'Sunny' }
- B:
DevKode,{ id: 1, name: 'Sunny' }
- C:
DevKode,{ id: 1, name: 'DevKode' }
- D:
Sunny,{ id: 1, name: 'DevKode' }
- A:
-
What will be the output?
function greet(person) { if (person == { name: 'Narendra Modi' }) { return 'hey Narendra Modi' } else { return 'hey Donald Trump' } } console.log(greet({ name: 'Narendra Modi' }))
- A:
hey Narendra Modi
- B:
hey Donald Trump
- A:
-
What will be the output?
const sample = ["xyz", "abc", "test", "ryan", "apple"]; delete sample[3]; console.log(sample.length);
- A:
4
- B:
5
- C:
Error updating the constant variable.
- A:
What will be the output?
const fruits_obj = { 0 : "apple" , 1 : "mango" , 2:"banana"};
const fruits_arr = ["apple","mango", "banana"];
console.log(typeof fruits_obj);
console.log(typeof fruits_arr);
console.log(fruits_obj == fruits_arr);
- A:
Object , Array , False
- B:
Object , Array , True
- C:
Object , Object , False
- D:
Object , Object , True