let a = '000001', b = '0'; alert([+a == a, typeof +a === 'number',+b == b, typeof +b === 'number'] );