-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHW 000002
51 lines (46 loc) · 1.22 KB
/
HW 000002
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
/**
* Complete the "createGraduateObject" function so that it takes in several arguments and combines them together in one object.
*
* @param {string} name
* @param {number} graduationYear
* @param {array} skills
* @param {string} githubLink
* @param {string} linkedInLink
*
* @returns {Object} with the properties "name", "graduationYear", "skills" and "links".
* "links" should be an object with the properties "github" and "linkedIn".
*
* @example
* const graduateObject = createGraduateObject("Eddie Willard", 2020, [ "Javascript", "React", "CSS" ], "https://github.com/example/profile", "https://linkedin.com/profile");
*
* console.log(graduateObject); //
* {
* name: "Eddie Willard",
* graduationYear: 2021,
* skills: ["JavaScript", "React", "CSS"],
* links: {
* github: "https://github.com/example/profile",
* linkedIn: "https://linkedin.com/profile"
* }
* }
*/
const createGraduateObject = (
name,
graduationYear,
skills,
githubLink,
linkedInLink
) => {
// WRITE YOUR ANSWER HERE
};
return {
name,
graduationYear,
skills,
links: {
github: githubLink,
linkedIn: linkedInLink,
},
};
// IGNORE THIS BELOW. It is for the tests.
export default createGraduateObject;