I was working on type conversion of Boolean values to Number in javascript.
console.log(new Number(true));//Prints 1
console.log(+true);//Prints 1
console.log(parseInt(true));//Prints NaN
Why is the parseInt is throwing NaN? While first and second case given above are working fine.

stringvariables. Here you're giving aboolean.