-2
I have a certain Javascript exercise that I can’t solve.
Given the following array object:
var usuarios = [
{
nome: "Diego",
habilidades: ["Javascript", "ReactJS", "Redux"]
},
{
nome: "Gabriel",
habilidades: ["VueJS", "Ruby on Rails", "Elixir"]
}
];
Write a function that produces the following result:
Diego has the skills: Javascript, Reactjs, Redux .
Gabriel has the skills: Vuejs, Ruby on Rails, Elixir.
I mean, I need you to console.log shows what was shown above, but it is necessary that to go through the array using the loop of repetition for..of and unite values using the Array.prototype.join.
What is the difficulty? You yourself have described what needs to be done to solve the problem: create a loop
forand use the methodjoinin the array.– Andre