Fynd interview question

How to convert string to integer and integer to string in javascript.