Closed omiras closed 2 years ago
For the naming convention, I have another suggestion: filter(); //2
That way the " -2 " isn't part of the method, and with // we're indicating it's a comment.
I'd like to hear everyone else's opinion, however I think the semicolon should definitely "close" the method, as the number just indicates that it's another exercise, it is not part of the "code".
This afternoon I'm going to see new level and lore. Iām so sorry that Iām late and missing.
For the naming convention, I have another suggestion:
filter(); //2
That way the " -2 " isn't part of the method, and with // we're indicating it's a comment. I'd like to hear everyone else's opinion, however I think the semicolon should definitely "close" the method, as the number just indicates that it's another exercise, it is not part of the "code".
Thanks!! Suggestion committed.
I added a new level.
Some questions:
var hugeBugs = myGrass.filter(x => x.weight > 20);