Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Glasgow Class 6 - Man Sang Sin - JS1 - Week 3 - #255

Open
ManSangSin wants to merge 4 commits into
CodeYourFuture:mainfrom
ManSangSin:main
Open

Glasgow Class 6 - Man Sang Sin - JS1 - Week 3#255
ManSangSin wants to merge 4 commits into
CodeYourFuture:mainfrom
ManSangSin:main

Conversation

@ManSangSin

Copy link
Copy Markdown

No description provided.

- completed exercises A-E
- added brackets to if statement
- completed mandatory exercises 1-3
for (let i = 0; i < numberOfBirthdays; i++) {
if (BIRTHDAYS[i].includes("July")) {
return BIRTHDAYS[i];
break;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like your use of the for loop.

);
}
return cityTempDataArr;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Really like your naming the variable very readable.

}
}
return shortestTitle;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

amazing thinking finding the solution, it took a long time for me.
one tip would be to do more frequent git push.

Comment thread 2-mandatory/3-stocks.js
priceChange =
closingPricesForIndividualCompany[4] -
closingPricesForIndividualCompany[0];
// add priceChange value to array priceChangeArr. The value is rounded to 2 decimal using math.round and multiplied by 100 then divided by 100

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

wow that very smart way to solve this one, and amazing work with the comments i should start writing more comments in my code as well.

@AppolinFotso AppolinFotso left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done @ManSangSin! Your codes are clean and readable.
I like the way you named your variables, it looks amazing.

- added a test to check the length of array from instructions: JS2 Week1 -Practice write a first test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants