JSFiddle - React, Tailwind, and code Playground

by Chitkala More

JavaScript

const jsonData = [
  { name: "Swastik Singh", age: 30, country: "India" },
  { name: "Arpit Koshti", age: 35, country: "Australia" },
  { name: "Krant Darshi", age: 36, country: "Sri Lanka" },
  { name: "Gaurav Pandey", age: 35, country: "Sri Lanka" },
];
 
[
    "Name: Swastik Singh, Age: 30, Country: India",
    "Name: Arpit Koshti, Age: 35, Country: Australia",
    "Name: Krant Darshi, Age: 36, Country: Sri Lanka",
    "Name: Gaurav Pandey, Age: 35, Country: Sri Lanka"
]
const newArr = jsonData.map((item)=>{
return "Name" + item.name +", Age: "+item.age + ", Country: "+item.country;
});
console.log(newArr);

sum(a,b){
return a+b;
}

sum(a){
return function(){
a+b
}
}
sum(a)(b)

let test = React.useMemo('xyz');

re