Ad
  • Custom User Avatar

    The correct output for if you test this code with {a: 1, b: '2'} should be 'a = 1, b = 2', while your function produces "undefineda = 1, b = 2, ".
    The you should initialize your string variable to get rid of undefined and try to figure out how to get rid of that dangling comma at the end.