-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwelcome.js
63 lines (60 loc) · 1.11 KB
/
welcome.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Welcome!
// https://www.codewars.com/kata/welcome/train/javascript
// use switch statement
// eventually refactor as an Object
function greet(language) {
switch (language) {
case 'english':
return ('Welcome');
break;
case 'czech':
return ('Vitejte');
break;
case 'danish':
return ('Velkomst');
break;
case 'dutch':
return ('Welkom');
break;
case 'estonian':
return ('Tere tulemast');
case 'finnish':
return ('Tervetuloa');
break;
case 'flemish':
return ('Welgekomen');
break;
case 'french':
return ('Bienvenue');
break;
case 'german':
return ('Willkommen');
break;
case 'irish':
return ('Failte');
break;
case 'italian':
return ('Benvenuto');
break;
case 'latvian':
return ('Gaidits');
break;
case 'lithuanian':
return ('Laukiamas');
break;
case 'polish':
return ('Witamy');
break;
case 'spanish':
return ('Bienvenido');
break;
case 'swedish':
return ('Valkommen');
break;
case 'welsh':
return ('Croeso');
break;
default:
return ('Welcome');
}
}