use Number() vs parseInt()
Tidying up console.log