Skip to content

Commit 01058f4

Browse files
committed
Agrego ejemplo de clusure en js
1 parent 4a15a34 commit 01058f4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sections/lenguaje/bloques-iteradores.md

+8
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,14 @@ let_me_see.call
618618
let_me_see.call
619619
```
620620

621+
----
622+
## Un closure en js
623+
624+
```js
625+
let multiplicar = ( x => (y) => x*y )
626+
multiplicar(2)(3)
627+
```
628+
621629
----
622630
### Lambda: notación alternativa
623631

0 commit comments

Comments
 (0)