Skip to content

Commit 7867dee

Browse files
committed
remove quotes from 38-properties
1 parent 5ad5e26 commit 7867dee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/38-properties/200-properties-methods/description.ru.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ theory: |
88
```javascript
99
const name = 'Robb';
1010
const upperName = name.toUpperCase();
11-
console.log(upperName); // => 'ROBB'
11+
console.log(upperName); // => ROBB
1212
```
1313
1414
https://replit.com/@hexlet/js-basics-properties-methods
@@ -22,11 +22,11 @@ theory: |
2222
// Округление до одного знака после запятой
2323
const roundedTemperature = temperature.toFixed(1);
2424
// Метод возвращает строку, которая содержит преобразованное число
25-
console.log(roundedTemperature); // => '22.9'
25+
console.log(roundedTemperature); // => 22.9
2626
2727
// Напрямую можно вызывать так
2828
// Скобки нужны обязательно, иначе не заработает
29-
(22.93).toFixed(1); // '22.9'
29+
(22.93).toFixed(1); // 22.9
3030
```
3131
3232
*Хозяйке на заметку. Технически всё несколько сложнее. Методы есть не у самих чисел, а у данных (объектов) типа Number. Числа, записанные в переменные или константы, автоматически преобразуются к данному типу во время обращения к ним, в это время происходит так называемый boxing.*

modules/38-properties/500-properties-chain-of-methods/description.ru.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ theory: |
77
88
```javascript
99
const peopleCount = 5;
10-
peopleCount.toString(); // '5'
10+
peopleCount.toString(); // 5
1111
```
1212
1313
Попробуйте ответить на вопрос, заработает ли следующий код — и если да, то что он напечатает на экран?

0 commit comments

Comments
 (0)