Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant call #3

Closed
YahyaAlfayad opened this issue Sep 2, 2017 · 0 comments
Closed

Redundant call #3

YahyaAlfayad opened this issue Sep 2, 2017 · 0 comments

Comments

@YahyaAlfayad
Copy link

https://github.com/fjundi/javascript/blob/876291268a6e6c0c5c89418eb0d14fa27166899d/week1hm.js#L14

This call here does nothing. The next call is what actually printed. You could either assign the result of this call to a new variable and then use that variable in console.log() or omit it. Best practice is to assign it to new variable.

@fjundi fjundi closed this as completed Sep 12, 2017
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

No branches or pull requests

2 participants