What will be the output of the following JavaScript code?
try{ const cars = { company: 'Honda' }; Object.seal(cars); delete cars.company; document.write(cars.company); } catch (err){ document.write(err.message); }
undefined
Honda
ValueError
TypeError
Correct Answer : B
Which of the following statements is not true about this example?
const obj = { outer: function() { const self1 = this const inner1 = () => { const self2 = this const inner2 = () => { const self3 = this } } } }
typeof `${{Object}}`.prototype