-10
Given the following object array:
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 traverse an array you must use the syntax for...of
and to merge values from an array with a separator use the join
.
what is your specific doubt? what you have done with your exercise?
– aa_sp
I’m unable to use the for...of and Join method
– Eduardo Candido
Eduardo, please don’t take this the wrong way, but it wouldn’t be right for me to post a solution here because you wouldn’t learn. Also because this seems like an exercise and so, the intention is for you to practice. Take a look at this site: https://www.w3schools.com/js/default.asp has a lot of content that will help you. if you have started doing the exercise, put what you already have and the problems that are occurring
– aa_sp
I’m just not getting the strings together with Join()
– Eduardo Candido