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

WM4_AlessandraSousa_Javascript-core-1_Week3 - #113

Open
AlessandraCYF wants to merge 3 commits into
CodeYourFuture:mainfrom
AlessandraCYF:main
Open

WM4_AlessandraSousa_Javascript-core-1_Week3#113
AlessandraCYF wants to merge 3 commits into
CodeYourFuture:mainfrom
AlessandraCYF:main

Conversation

@AlessandraCYF

Copy link
Copy Markdown

No description provided.

@Pat-On Pat-On 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.

I am really happy with Your progress.
I see that you understand for loop, while and do while loops - great!

Please do not forget about the correct indentation and please finish exercises from the 2-mandatory folder:
3-financial-times.js
4-stocks.js

// TODO
let array = []
let i = 0;
while (i < n) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You have nicely done a while loop!

function findFirstJulyBDay(birthdays) {
// TODO
let i = 0;
while (i < birthdays.length) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good!


function evenNumbersSum(n) {
// TODO
let sum = 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please remember about correct code formatting. It is making your life easier when You are coding and reading code.

//while(i < 26) {
//console.log(String.fromCharCode(97 + i));
//i++;
for (let i = 0; i < 26; i++) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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


// TODO - Write for loop code here

for (let i = 0; i < WRITERS.length; i++) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Correct indentation :)

}
let citiesTemp = [];
for (city of cities) {
let temp = temperatureService(city);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

unused variable - next time, please remove it or use in string interpolation :)

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.

2 participants