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

WM4-Vanipriya_Piramanathan-JavaScript Core 1-Week-3 - #91

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

WM4-Vanipriya_Piramanathan-JavaScript Core 1-Week-3#91
Vanipriyaarun wants to merge 3 commits into
CodeYourFuture:mainfrom
Vanipriyaarun:main

Conversation

@Vanipriyaarun

Copy link
Copy Markdown

No description provided.


function evenNumbersSum(n) {
// TODO
let i=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.

Great job!!!


function findFirstJulyBDay(birthdays) {
// TODO
let i=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.

Hi, Piramanathan, I check your code and it is fine, it's functional. good job

@Sharifa1 Sharifa1 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.

Welldone Vanipriya. You've done a very good job. Keep it up

// Example 4
let arr = [1,2,3];
console.log(arr[3]);
console.log(arr[3]); // the value of arr[3] is not declared so the output is undefined

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice explanations

return birthdays[i];
}
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.

Good

sumOfEven=sumOfEven+i*2;
i++;
}while(i<n)
return sumOfEven;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice codes. You can also do it this way
let sum= 0;
let i = 0;
do {
sum += i * 2;
i = i + 1;
} while (i < n);
return sum;

Comment thread 2-mandatory/4-stocks.js
highestPrice.push(`The highest price of ${stocks[i].toUpperCase()} in the last 5 days was ${(Math.max.apply(Math,closingPricesForAllStocks[i])).toFixed(2)}`)
}
return highestPrice;
}

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 job Vanipriya

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