We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1201927 commit 351bb88Copy full SHA for 351bb88
2 files changed
aula16/analisadordenum/script.js
@@ -18,6 +18,7 @@ function adicionar() {
18
item.text = `Valor ${n} adicionado!`;
19
sel.appendChild(item);
20
21
+ res.innerHTML = ''
22
num.value = "";
23
num.focus();
24
} else {
aula17/objeto01.js
@@ -0,0 +1,13 @@
1
+let goat = {
2
+ nome:'pagotti',
3
+ sexo:'m',
4
+ idade:67,
5
+ altura:1.67,
6
+ peso: 63,
7
+ engordar(p=0){
8
+ console.log('Engordou')
9
+ this.peso += p
10
+ }
11
+}
12
+goat.engordar(4)
13
+console.log(`${goat.nome} pesa ${goat.peso}`)
0 commit comments