Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 10-primitive-data-types en after proofread #591

Conversation

NatalieKonstantinova
Copy link
Contributor

Не принимать!

@mikhaylov-ya глянь пожалуйста, после пруфридинга

@NatalieKonstantinova
Copy link
Contributor Author

@evemrzv глянь пожалуйста, это вроде ты переводила


How does JavaScript detect the data type? Pretty simple. Any value is initialized and, depending on how it's initialized, it becomes clear what's type of data is it. For example, numbers are just numbers without any extra characters, apart from the point for rational numbers. Strings, on the other hand, are always written between special characters (there are three ways to write strings in JavaScript). For example, `'234'` is a string, even though there are numbers written between quotes.
How does JavaScript detect the data type? It's quite simple. Any value entered will be initialised and, depending on how it's initialised, it'll understand what type of data it is. Numbers, for instance, are just numbers without any extra characters, apart from the point (.) for decimals. Strings, on the other hand, are always written between special characters (there are three ways to write strings in JavaScript). For example, `'234'` is a string, even though there are numbers written between quotes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apart from the point for rational numbers => apart from the point (.) for decimals
все ок, только вот тут не поняла, почему заменили на decimals, если в оригинале писали про рациональные числа, а decimals это только десятичные дроби

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

с остальным согласна. Кроме initialize, но Ярослав уже объяснил почему

@NatalieKonstantinova NatalieKonstantinova merged commit 7ff55cd into hexlet-basics:main Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants