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

Update 3.js #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update 3.js #12

wants to merge 1 commit into from

Conversation

Nishant9771
Copy link

The issues in these code is you should have to use let or const to declare the variables result and result2 .

By using let or var keyword to declare result and result2, we ensure that each variable is scoped correctly and not overwritten by subsequent calls to the square function.

I updated the code, Review it once.
Thank You

The issues in these code is you should have to use let or const to declare the variables result and result2 .

By using let or var keyword to declare result and result2, we ensure that each variable is scoped correctly and not overwritten by subsequent calls to the square function.

I updated the code,  Review it once. 
Thank You
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.

1 participant