Skip to content

Commit ff09dc3

Browse files
committed
[HW-5.9/ret] languages
Making changes according to the "code review/PR". Worth noting: - initial interaction with GitHub/gemini-code-assist. FS-dev: B-3 / JS basic
1 parent be7c4c1 commit ff09dc3

File tree

1 file changed

+3
-4
lines changed
  • full-stack-dev/3-js-basic/5-flow-control/5-9-hw-2-languages

1 file changed

+3
-4
lines changed

full-stack-dev/3-js-basic/5-flow-control/5-9-hw-2-languages/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@
44
// - Отработать через switch/case.
55

66
const userLang = 'RU';
7-
const userLangLower = userLang.toLowerCase(); // к нижнему регистру
87

9-
switch (userLangLower) {
8+
switch (userLang.toLowerCase()) {
109
case 'ru':
1110
console.log('Привет!');
1211
break;
1312
case 'en':
1413
console.log('Hello!');
1514
break;
1615
case 'de':
17-
console.log('Gutten tag!');
16+
console.log('Guten tag!');
1817
break;
1918
default:
20-
console.log('Не известный язык..');
19+
console.log('Неизвестный язык..');
2120
break;
2221
}

0 commit comments

Comments
 (0)