fix minor typo
"synctax" to "syntax"
This commit is contained in:
parent
d84673a6ec
commit
81a63cfdb7
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ Class fields are a recent addition to the language.
|
||||||
|
|
||||||
Previously, classes only had methods.
|
Previously, classes only had methods.
|
||||||
|
|
||||||
"Class fields" is a synctax that allows to add any properties.
|
"Class fields" is a syntax that allows to add any properties.
|
||||||
|
|
||||||
For instance, let's add `name` property to `class User`:
|
For instance, let's add `name` property to `class User`:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue