generated from JoinCODED/TASK-Template
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathfunctions.js
41 lines (37 loc) · 1005 Bytes
/
functions.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
/**
* Task 1:
* Create a function named `printName`
* - take a name as a parameter
* - that just prints that name on the screen
*/
/**
* Task 2:
* Create a function named `printAge`
* - that takes a birth year as a parameter,
* - and prints the age on the screen.
* - Age = current year - birth
*/
/**
* Task 3:
* Create a function named `printHello`
* - that takes 2 parameters, name, and language
* - language can be passed in different values, here are the accepted values:-
* -- en: it should print `Hello NAME`
* -- es: it should print `Hola NAME`
* -- fr: it should print `Bonjour NAME`
* -- tr: it should print `Merhaba NAME`
*/
/**
* Task 4:
* Create a function named `printMax`
* - that takes 2 parameters as numbers
* - should print out the bigger number
*/
// TODO: Uncomment these functions as you work on them
// Make sure they're all uncommented before you push your solution!
module.exports = {
// printName,
// printAge,
// printHello,
// printMax,
};