--- a PPN by Garber Painting Akron. With Image Size Reduction included!URL: http://github.com/javascript-tutorial/bg.javascript.info/pull/238.patch
the array.
Some programming languages allow the use of negative indexes for the same purpose, like `fruits[-1]`.
-Although, in JavaScript it won't work. The result will be `undefined`, because the index in square brackets is treated literally.
+However, in JavaScript it won't work. The result will be `undefined`, because the index in square brackets is treated literally.
We can explicitly calculate the last element index and then access it: `fruits[fruits.length - 1]`.
From 87bfe5b6bc7a96415974736c21b87384da0fb829 Mon Sep 17 00:00:00 2001
From: swapnasahoo
Date: Tue, 17 Feb 2026 15:32:59 +0530
Subject: [PATCH 09/10] docs: replace figure brackets with curly braces across
all occurrences
---
.../02-coding-style/1-style-errors/solution.md | 4 ++--
1-js/04-object-basics/01-object/article.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/1-js/03-code-quality/02-coding-style/1-style-errors/solution.md b/1-js/03-code-quality/02-coding-style/1-style-errors/solution.md
index 4facc8b29..93c1947ca 100644
--- a/1-js/03-code-quality/02-coding-style/1-style-errors/solution.md
+++ b/1-js/03-code-quality/02-coding-style/1-style-errors/solution.md
@@ -3,7 +3,7 @@ You could note the following:
```js no-beautify
function pow(x,n) // <- no space between arguments
-{ // <- figure bracket on a separate line
+{ // <- curly braces on a separate line
let result=1; // <- no spaces before or after =
for(let i=0;i, there are eight data types in JavaScri
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.
-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.
+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.
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.
@@ -20,7 +20,7 @@ let user = {}; // "object literal" syntax

-Usually, the figure brackets `{...}` are used. That declaration is called an *object literal*.
+Usually, the curly braces `{...}` are used. That declaration is called an *object literal*.
## Literals and properties
From 953c2dbf45e5dfa40a9b78d39ffbf9bd7320d380 Mon Sep 17 00:00:00 2001
From: "Stanislav (Stanley) Modrak"
<44023416+smith558@users.noreply.github.com>
Date: Thu, 26 Feb 2026 10:25:28 +0000
Subject: [PATCH 10/10] Improve coding style
---
.../02-coding-style/1-style-errors/solution.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/1-js/03-code-quality/02-coding-style/1-style-errors/solution.md b/1-js/03-code-quality/02-coding-style/1-style-errors/solution.md
index 93c1947ca..31b3bb7ae 100644
--- a/1-js/03-code-quality/02-coding-style/1-style-errors/solution.md
+++ b/1-js/03-code-quality/02-coding-style/1-style-errors/solution.md
@@ -3,7 +3,7 @@ You could note the following:
```js no-beautify
function pow(x,n) // <- no space between arguments
-{ // <- curly braces on a separate line
+{ // <- curly brace on a separate line
let result=1; // <- no spaces before or after =
for(let i=0;i
pFad - Phonifier reborn
Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy