When will NaN be returned and when will 0 be returned ?
console.log(parseInt('3',2)); // NaN
console.log(parseInt('09',8)); // 0
When will NaN be returned and when will 0 be returned ?
console.log(parseInt('3',2)); // NaN
console.log(parseInt('09',8)); // 0