Skip to content

Address some possible issues in 1.2.10 #118

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

Merged
merged 1 commit into from
Oct 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 1-js/02-first-steps/10-ifelse/1-if-zero-string/solution.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**Так, буде.**

Будь-який рядок, за вийнятком порожнього (і `"0"` не є порожнім) перетворюються на `true` у логічному контексті.
Будь-який рядок, за вийнятком порожнього (і `"0"` не є порожнім), перетворюються на `true` у логічному контексті.

Ми можемо запустити і перевірити:

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<script>
'use strict';

let value = prompt('Яке "офіційне" ім\'я JavaScript?', '');
let value = prompt('Яка "офіційна" назва JavaScript?', '');

if (value == 'ECMAScript') {
alert('Правильно!');
} else {
alert("Ви не знаєте? ECMAScript!");
alert('Ви не знаєте? ECMAScript!');
}
</script>

Expand Down
6 changes: 3 additions & 3 deletions 1-js/02-first-steps/10-ifelse/2-check-standard/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ importance: 2

---

# Ім'я JavaScript
# Назва JavaScript

Використовуючи конструкцію `if..else`, напишіть код, що запитує: 'Яке "офіційне" ім'я JavaScript?'
Використовуючи конструкцію `if..else`, напишіть код, що запитує: 'Яка "офіційна" назва JavaScript?'

Якщо відвідувач вводить "ECMAScript", виведіть "Правильно!", у іншому випадку -- виведіть: "Не знаєте? ECMAScript!"
Якщо відвідувач вводить "ECMAScript", виведіть "Правильно!", в іншому випадку -- виведіть: "Не знаєте? ECMAScript!"

![](ifelse_task2.svg)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ importance: 5

# Перепишіть 'if' на '?'

Перепишіть цей `if`, використовуючи умовний оператор `'?'`:
Перепишіть конструкцію `if`, використовуючи умовний оператор `'?'`:

```js
let result;
Expand Down
Loading