Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

203
Visualizações
a defined dictionary gets undefined when i dict trough it

I have an funtion that makes a get request to an server and the server respond to it and i need to check the status code but when i use the key of the responded dict i get the log that its undefined, but when i do this in the console i do get the status code.

function check_object(time_link_check){
        var x = $.get(time_link_check);
        //1
        console.log(x)
        //2
        console.log(x.status)
    }

Object {
  readyState: 1,
  getResponseHeader: getResponseHeader(e),
  getAllResponseHeaders: getAllResponseHeaders(),
  setRequestHeader: setRequestHeader(e, t),
  overrideMimeType: overrideMimeType(e),
  statusCode: statusCode(e),
  abort: abort(e),
  state: state(),
  always: always(),
  catch:
    catch (e),
  …
}

  1. undefined
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda