What is the output of the following code?
Var container = {
someKey: 3,
someOtherKey: “someObject”,
anotherKey: “Some text”
};
If (“someOtherKey: in container) {
Alert(true);
}
Delete container[“someOtherKey”];
If (container[“someOtherKey”] === null) {
Alert(false);
}
If (container[“someOtherKey”] === undefined) {
Alert(true);
}
If (container.someOtherKey === Undefined) {
Alert(false);
}
If (container.someKey === undefined) {
Alert(true);
}
Delete container[“someKey”];
If (container.someKey === 3) {
Alert(true);
}
Correct Answer: True True False
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions