0

undefine variable will loadData function from displayStructure all variables names, ages..etc displayed

async function loadData(route) {
            const response =  await fetch('http://127.0.0.1:8000/'+route);
             const names =await response.json();
             console.log(names); 
             
            return names;
          }
        function displayStructure(){
    var names=loadNames('getNames');
    var department=loadNames('getDep');

    var ages=loadNames('getAge');
    var bod=loadNames('getbod');

}

Gis 92
  • 1
  • 1

0 Answers0