Skip to content

Commit 87bfe5b

Browse files
committed
docs: replace figure brackets with curly braces across all occurrences
1 parent d78b01e commit 87bfe5b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

1-js/03-code-quality/02-coding-style/1-style-errors/solution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ You could note the following:
33

44
```js no-beautify
55
function pow(x,n) // <- no space between arguments
6-
{ // <- figure bracket on a separate line
6+
{ // <- curly braces on a separate line
77
let result=1; // <- no spaces before or after =
88
for(let i=0;i<n;i++) {result*=x;} // <- no spaces
99
// the contents of { ... } should be on a new line
@@ -13,7 +13,7 @@ function pow(x,n) // <- no space between arguments
1313
let x=prompt("x?",''), n=prompt("n?",'') // <-- technically possible,
1414
// but better make it 2 lines, also there's no spaces and missing ;
1515
if (n<=0) // <- no spaces inside (n <= 0), and should be extra line above it
16-
{ // <- figure bracket on a separate line
16+
{ // <- curly braces on a separate line
1717
// below - long lines can be split into multiple lines for improved readability
1818
alert(`Power ${n} is not supported, please enter an integer number greater than zero`);
1919
}

1-js/04-object-basics/01-object/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ As we know from the chapter <info:types>, there are eight data types in JavaScri
55

66
In contrast, objects are used to store keyed collections of various data and more complex entities. In JavaScript, objects penetrate almost every aspect of the language. So we must understand them first before going in-depth anywhere else.
77

8-
An object can be created with figure brackets `{…}` with an optional list of *properties*. A property is a "key: value" pair, where `key` is a string (also called a "property name"), and `value` can be anything.
8+
An object can be created with curly braces `{…}` with an optional list of *properties*. A property is a "key: value" pair, where `key` is a string (also called a "property name"), and `value` can be anything.
99

1010
We can imagine an object as a cabinet with signed files. Every piece of data is stored in its file by the key. It's easy to find a file by its name or add/remove a file.
1111

@@ -20,7 +20,7 @@ let user = {}; // "object literal" syntax
2020

2121
![](object-user-empty.svg)
2222

23-
Usually, the figure brackets `{...}` are used. That declaration is called an *object literal*.
23+
Usually, the curly braces `{...}` are used. That declaration is called an *object literal*.
2424

2525
## Literals and properties
2626

0 commit comments

Comments
 (0)