Plz help me to get rid out of this

Tell us what’s happening:

Your code so far


function convertToInteger(str) {
  var a = parseInt("56","77","JamesBond");
  return 56 + 1,56;
if else{ return 77 + 1 , 77 ;} 
  return Nan ;
}




convertToInteger("56");

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function

2 posts were merged into an existing topic: Give me suggestion to do further code: