Skip to content

New solution#37

Open
Pallepadehat wants to merge 1 commit into
Codecademy:mainfrom
Pallepadehat:patch-1
Open

New solution#37
Pallepadehat wants to merge 1 commit into
Codecademy:mainfrom
Pallepadehat:patch-1

Conversation

@Pallepadehat
Copy link
Copy Markdown

Why this is better:

  • let instead of var because values never change
  • Calculates the square root only once
  • Cleaner variable names
  • Less repeated math
  • Easier to read and faster

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 13, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants