Skip to content

Javascript 1#1

Open
nick-brett wants to merge 5 commits into
masterfrom
nick-brett
Open

Javascript 1#1
nick-brett wants to merge 5 commits into
masterfrom
nick-brett

Conversation

@nick-brett

Copy link
Copy Markdown
Owner

Here is what I have so far for the JS-I assignment.

@nick-brett
nick-brett requested a review from Blevs June 11, 2019 15:34
// };
// myFunction();

let myFunction = () => "Function was invoked"; //<---- which is correct?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They wanted let myFunction = () => console.log("Function was invoked"), but that is honestly close enough that I can see you know what you are doing.

// });
// console.log(triple); No newline at end of file
// console.log(triple);
// ??? const triple = exampleArray.map(num) => num * 3; ?????????? No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really close. Map takes the callback, which you wrote perfectly, as an argument. It would be const triple = exampleArray.map((num) => num * 3);

@Blevs

Blevs commented Jun 11, 2019

Copy link
Copy Markdown
Collaborator

I am not going to merge this yet, because if you have time today I would like to see you go back and finish a bit more. If not, no big deal, but it is important to get the practice in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants