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 ;


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:

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