Skip to content

Commit 8239ebb

Browse files
Update 1-js/04-object-basics/09-object-toprimitive/article.md
Co-authored-by: Andrea <45577511+longo-andrea@users.noreply.github.com>
1 parent 4f1d1c0 commit 8239ebb

File tree

1 file changed

+1
-1
lines changed
  • 1-js/04-object-basics/09-object-toprimitive

1 file changed

+1
-1
lines changed

1-js/04-object-basics/09-object-toprimitive/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ let obj = {
187187
}
188188
};
189189

190-
alert(obj * 2); // 4, object converted to primitive "2", then multiplication made it a number
190+
alert(obj * 2); // 4, l'oggetto viene convertito al primitivo "2", successivamente la moltiplicazione lo converte a numero
191191
```
192192

193193
1. La moltiplicazione `obj * 2` prima converte l'oggetto a primitivo (è una stringa, `"2"`).

0 commit comments

Comments
 (0)