Skip to content

Commit b83d4b1

Browse files
EzequielCasteMaksumi Murakami
andauthored
Update 1-js/02-first-steps/08-operators/1-increment-order/solution.md
Co-authored-by: Maksumi Murakami <[email protected]>
1 parent fa1f7d2 commit b83d4b1

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/08-operators/1-increment-order

1 file changed

+1
-1
lines changed

1-js/02-first-steps/08-operators/1-increment-order/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ La respuesta es:
1010
let a = 1, b = 1;
1111

1212
alert( ++a ); // 2, la forma de prefijo devuelve el nuevo valor
13-
alert( b++ ); // 1, como sufijo devuelve el antiguo valor
13+
alert( b++ ); // 1, la forma de sufijo devuelve el antiguo valor
1414

1515
alert( a ); // 2, incrementado una vez
1616
alert( b ); // 2, incrementado una vez

0 commit comments

Comments
 (0)