Ad
  • Custom User Avatar

    Hi, I have some problems with the answer because the function returns me a rounded value in all cases (specific, one) but I tried the equation that I use to solve the problem in a scientific calculator and return me a correct answer. Then my answer consists of the next: how I can change this situation in javascript? thank you.

  • Custom User Avatar

    I already achieved to fix the problem. thank you for support,that was really helpfull.

  • Custom User Avatar
  • Custom User Avatar

    Ok, but might you explain to me how to print here? because for the different tests, I use an IDE and use console.log to see the result of my function. Thank you for the answer

  • Custom User Avatar

    Start with printing the input, the first value there is what your function returned.

  • Custom User Avatar

    I getting a problem when press "attempt", but not when I press "test". The problem that the console print is the next:

    expected '["a","b",null,"c","d",1,false,1,3,1,9,{},9,0,0,0,0,0,0,0,0,0,0,0]'
    to equal '["a","b",null,"c","d",1,false,1,3,[],1,9,{},9,0,0,0,0,0,0,0,0,0,0]'

    And I don't understand two things:
    First, why it appears [] in the equal if in the first array there isn't? and second, What happens with one zero, why it disappears? Exactly, there are eleven zero's in the initial array, but in the result of the function, there are ten zero's. how the missing zero may be changing like an empty array? please help me with that because I don´t understand what happened here