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

182
Visualizações
How to get a specific object property, based on another object property?

i am quite new to code. I am trying to get the restaurant's rating, based on the user's restaurant name search. The restaurant name is labelled in the json as dba: "restaurant name". I am trying to search through the json and if the dba matches the restaurant name, i wish to return the respective property of "grade" back to the user interface.

here is my code:

const api_url = "https://data.cityofnewyork.us/resource/43nn-pn8j.json";
const getAPI = () => {
  fetch(api_url)
    .then((response) => {
      return response.json();
    })
    .then((data) => {
      displayAPI(data);
    });
};
function displayAPI(data) {
  console.log(data);
}

getAPI();
displayAPI();
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