Skip to content

Commit cd82184

Browse files
committed
Corrección lección funciones
1 parent 4eacf49 commit cd82184

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Basic/16-functions.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function defaultSum(a = 0, b = 0) {
6262
defaultSum()
6363
defaultSum(5)
6464
defaultSum(5, 10)
65-
defaultSum(b = 5)
65+
defaultSum(undefined, 5)
6666

6767
// Retorno de valores
6868

@@ -96,11 +96,11 @@ applyFunc(myFunc4, "función de orden superior")
9696

9797
// forEach
9898

99-
myArray = [1, 2, 3, 4]
99+
const myArray = [1, 2, 3, 4]
100100

101-
mySet = new Set(["Brais", "Moure", "mouredev", 37, true, "[email protected]"])
101+
const mySet = new Set(["Brais", "Moure", "mouredev", 37, true, "[email protected]"])
102102

103-
myMap = new Map([
103+
const myMap = new Map([
104104
["name", "Brais"],
105105
["email", "[email protected]"],
106106
["age", 37]

0 commit comments

Comments
 (0)