You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that console.log is a function but to make any function actually happen you need the brackets. You can also make a function happen straight away like this.
let myAnswer = function add(a,b){
return a+b;
}(3,4);
or using an arrow function (also called a lamda)
let myAnswer = ((a,b) => a+b)(3,4);
Can you see? (3,4) makes the function happen.
console.log is the function but
console.log() it is the () which make the function happen (but of course give the function something to output to the console).
Well that is to help you understand a little bit better I hope.
I didn't really find anything else to say. The exercises look good and your mandatory tests are working so excellent.
A very good submission showing lots of understanding.
Thank you
Steve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sorry I forgot to pull request mine.