var flag1 = new Boolean(true);

console.log(flag1.toString());
// expected output: "true"

var flag2 = new Boolean(1);

console.log(flag2.toString());
// expected output: "true"