// Что выведется в консоль?
 
 
const str1 = '';
const str2 = '0';
const num1 = 0;
const num2 = 1;
const bool1 = null;
const bool2 = undefined;
const bool3 = [];
const bool4 = {};
 
console.log(Boolean(str1)); // false
console.log(Boolean(str2)); // true
console.log(Boolean(num1)); // false
console.log(Boolean(num2)); // true
console.log(Boolean(bool1)); // false
console.log(Boolean(bool2)); // false
console.log(Boolean(bool3)); // true
console.log(Boolean(bool4)); // true
 
 
// Какие значения всегда преобразуются в false?
 
Code will run automatically after changes.
Code runs in an isolated environment.