-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesafio1-5.html
41 lines (34 loc) · 916 Bytes
/
desafio1-5.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<html>
<head>
<meta charset="UTF-8"/>
<title> Curso Manipulando a DOM</title>
</head>
<body>
<div id="app">
</div>
<script>
function habil(array){
for (const iterator of array) {
let a = iterator;
const b = a.nome;
const c = a.habilidades.join(', ');
var d = 'O ' + b + ' possui habilidades: ' + c;
console.log(d);
}
}
var usuarios = [
{
nome: "Diego",
habilidades: ["Javascript", "ReactJS", "Redux"]
},
{
nome: "Gabriel",
habilidades: ["VueJS", "Ruby on Rails", "Elixir"]
}
];
console.log(habil(usuarios));
/* O Diego possui as habilidades: Javascript, ReactJS, Redux
O Gabriel possui as habilidades: VueJS, Ruby on Rails, Elixir */
</script>
</body>
</html>