Skip to content

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