Skip to content

Completly exercises#1

Open
ArnauACR wants to merge 3 commits into
mainfrom
develop
Open

Completly exercises#1
ArnauACR wants to merge 3 commits into
mainfrom
develop

Conversation

@ArnauACR

Copy link
Copy Markdown
Owner

I complet exercises

@netlify

netlify Bot commented Nov 17, 2024

Copy link
Copy Markdown

Deploy Preview for arnaucostaloopsconditionals ready!

Name Link
🔨 Latest commit a21b6f0
🔍 Latest deploy log https://app.netlify.com/sites/arnaucostaloopsconditionals/deploys/673a4ab61d7a72000813247b
😎 Deploy Preview https://deploy-preview-1--arnaucostaloopsconditionals.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.


// 2

if (number % 2 === 0) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good solution.

Take in account object calisthenics rules in the future 👉 avoid else statement.

https://medium.com/@davidsen/clean-code-object-calisthenics-f6f4dec07c8b


for (let i = 1; i <= 10; i++) {

let number = (Math.random() * 10) | 0 + 1;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain this expression? 🤔

All done!
*/

for (let i = 1; i <= 100; i++) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implementation is not compliant with requirements.


$counter = 1;

while ($counter <= 100) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implementation is not compliant with requirements.

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