Skip to content

Katie Gorbell - Javascript-II - #90

Open
kgorbell wants to merge 3 commits into
bloominstituteoftechnology:masterfrom
kgorbell:master
Open

Katie Gorbell - Javascript-II#90
kgorbell wants to merge 3 commits into
bloominstituteoftechnology:masterfrom
kgorbell:master

Conversation

@kgorbell

Copy link
Copy Markdown

No description provided.

Comment thread assignments/function-conversion.js Outdated
// Take the commented ES5 syntax and convert it to ES6 arrow Syntax

// let myFunction = function () {};
let myFunction = function () {};

@holly-g holly-g May 22, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

With no parameters, you can express the arrow function like so: let myFunction = ( ) => { };

// let anotherFunction = function (param) {
// return param;
// };
let anotherFunction = param => param;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't forget the ( ) around the first param!

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