What does this program print? Write the output: one line for each console log call, in the same order.
const answers = { true: 'yes', 1: 'no', 1.0: 'maybe' };
console.log(answers);
console.log(Object.keys(answers).length);
console.log(['123', 'yes'][0][1]);
console.log(['123', 'yes'][false]);{ a: 1 }, with spaces inside the braces, and a string inside an object has single quotes. A key that is a valid variable name has no quotes; any other key, for example one that starts with a digit, is printed in single quotes.const answers = { true: 'yes', 1: 'no', 1.0: 'maybe' };
console.log(answers);
console.log(Object.keys(answers).length);
console.log(['123', 'yes'][0][1]);
console.log(['123', 'yes'][false]);Asked at Rostelecom · Source