Home > front end >  TypeError: Cannot read properties of undefined (reading 'name') in js
TypeError: Cannot read properties of undefined (reading 'name') in js

Time:09-04

  const html = `
        <article >
          <img  src="${data.flags.png}" />
          <div >
            <h3 >${data.name.common}</h3>
            <h4 >${data.region}</h4>
            <p ><span>           
  • Related