Skip to content

feat(20-arithmetics): adapt content from Python version#799

Draft
fey wants to merge 2 commits into
mainfrom
update-20-arithmetics-from-python
Draft

feat(20-arithmetics): adapt content from Python version#799
fey wants to merge 2 commits into
mainfrom
update-20-arithmetics-from-python

Conversation

@fey
Copy link
Copy Markdown
Contributor

@fey fey commented May 27, 2026

Что изменено

Адаптация модуля 20-arithmetics из exercises-python под JavaScript.

Изменения по урокам

Урок Изменения
20-basic Переписан README с JS-синтаксисом, убран // (целочисленное деление, в JS это комментарий), новое задание — цена батарейки
25-operator Переписан README с диаграммой унарных/бинарных операций, задание — подводная лодка (87 м, 29 мин)
27-commutativity Переписан README с JS примерами, новое задание — художник (2**8=256) и пирожные (9/3=3)
30-composition Переписан README с пошаговой диаграммой и примерами с отрицательными числами, задание — покупка подарков (660 руб)
40-priority Переписан README с таблицей приоритетов, задание — пицца и напитки ((2*300+4*50)/5=160)
50-float Переписан README с объяснением IEEE 754, задание — 0.1+0.2 (JS выдаёт 0.30000000000000004)
80-linting Заменён eslint на biome, обновлены ссылки и примеры

Что осталось без изменений

  • 60-infinity — JS-специфика (Infinity)
  • 70-nan — JS-специфика (NaN)

🤖 Generated with Claude Code

fey and others added 2 commits May 27, 2026 20:37
- 20-basic: rewrite README with JS syntax, new battery price exercise
- 25-operator: rewrite README with unary/binary diagram, submarine exercise
- 27-commutativity: rewrite README with JS code, painter exercise (2**8=256, 9/3=3)
- 30-composition: rewrite README with step-by-step diagram, shopping exercise
- 40-priority: rewrite README with priority table, pizza exercise
- 50-float: rewrite README with 0.1+0.2 surprise story (JS-specific result)
- 80-linting: replace eslint with biome, update links and examples

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Mirrors fix from exercises-python: remove extra 2-space leading
indentation from ASCII diagrams inside ```text blocks.

Affected files:
- 20-basic: console.log flow diagram
- 25-operator: operand/operator table
- 27-commutativity: commutativity diagram
- 30-composition: 2+3*4 step-by-step diagram
- 40-priority: operator precedence table
- 50-float: Expected vs Actual diagram
- 80-linting: Code→Linter→Result diagram

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant