// this is the input. need to iterate the tech based name from object
<code>let obj=[
{
name:"Nithesh",
tech:["HTML","CSS","JAVA","JS"],
},
{
name:"hari",
tech:["NodeJS","CSS","React","JS"],
},
{
name:"sathish",
tech:["Angular","CSS","React","HTML"],
}
]
</code>
<code>let obj=[
{
name:"Nithesh",
tech:["HTML","CSS","JAVA","JS"],
},
{
name:"hari",
tech:["NodeJS","CSS","React","JS"],
},
{
name:"sathish",
tech:["Angular","CSS","React","HTML"],
}
]
</code>
let obj=[
{
name:"Nithesh",
tech:["HTML","CSS","JAVA","JS"],
},
{
name:"hari",
tech:["NodeJS","CSS","React","JS"],
},
{
name:"sathish",
tech:["Angular","CSS","React","HTML"],
}
]
//and output like this. but I tried all ways but code is not working
<code>o/p={
"HTML":["Nithesh","sathish"],
"CSS":["Nithesh","hari", "sathish"],
"JS":["Nithesh","hari"],
"React":["hari", "sathish"],
"NodeJs":["hari"],
"Angular":["sathish"],
"JAVA":["Nithesh"],
}
</code>
<code>o/p={
"HTML":["Nithesh","sathish"],
"CSS":["Nithesh","hari", "sathish"],
"JS":["Nithesh","hari"],
"React":["hari", "sathish"],
"NodeJs":["hari"],
"Angular":["sathish"],
"JAVA":["Nithesh"],
}
</code>
o/p={
"HTML":["Nithesh","sathish"],
"CSS":["Nithesh","hari", "sathish"],
"JS":["Nithesh","hari"],
"React":["hari", "sathish"],
"NodeJs":["hari"],
"Angular":["sathish"],
"JAVA":["Nithesh"],
}