Untitled

mail@pastecode.io avatar
unknown
plain_text
16 days ago
659 B
3
Indexable
Never
const Tests=()=>{

  const data = {
    // console.log(data.projects[0].subjects[0].email)
    projects: [
      {
        name: "Project Alpha",
        description:
          "This project involves developing a new software application for managing inventory.",

        subjects: ["maths", "english", "hindi"],
      },
    ],
  };

  // console.log(data.projects[0]);
  // console.log(data.projects[1].subjects[1]);
  console.log(data.projects[0].subjects);

  return (
    <div>
      <h1>Test Comp</h1>

      {data.projects[0].subjects.map((sub,index)=>{
        return <h1 key={index}>{sub}</h1>
      })}
    </div>
  );
}
Leave a Comment