-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHW 000005
28 lines (24 loc) · 1.04 KB
/
HW 000005
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
/**
* Return all the properties contained in the "blogPost" object.
* @param {object} blogPost
* @returns {array} of strings
*
* @example
*
* const blogPost = {
* title: "Building a Form Validation API",
* author: "Mark Marshall",
* date: "2021-08-05",
* content:
* "It's required! Let's learn how to leverage the JavaScript Constraint API to remind your users when they need to finish filling out those pesky form fields. And we will show you how to do this with keeping accessibility in mind. ...",
* };
*
* returnObjectValues(blogPost);
* // ["Building a Form Validation API", "Mark Marshall", "2021-08-05", "It's required! Let's learn how to leverage the JavaScript Constraint API to remind your users when they need to finish filling out those pesky form fields. And we will show you how to do this with keeping accessibility in mind. ..."]
*/
const returnObjectValues = (blogPost) => {
// WRITE YOUR ANSWER HERE
};
return Object.values(blogPost);
// IGNORE THIS BELOW. It is for the tests.
export default returnObjectValues;