By using parseInt(x), we can get an integer value from a string. But same functionality we can achieve from +(x) also. What exactly the functional difference are. Ex:
let input = '123';
let output = parseInt(input); // gives output as integer 123
let output = +(input); // gives output as integer 123