Given the following vector of objects:
var usuarios = [
{
nome: 'Diego',
habilidades: ['Javascript', 'ReactJS', 'Redux']
},
{
nome: 'Gabriel',
habilidades: ['VueJS', 'Ruby on Rails', 'Elixir']
}
];
Write a function that produces the following result:
O Diego possui as habilidades: Javascript, ReactJS, Redux
O Gabriel possui as habilidades: VueJS, Ruby on Rails, Elixir
Tip: To go through a vector you must use the for...of
syntax and to join values from an array with a separator use join
.