Skip to content

Razan Alkhateeb - part1 Task #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Rznalkh
Copy link

@Rznalkh Rznalkh commented Mar 11, 2025

prettier is not working yet :/

@@ -42,6 +43,7 @@ function hottestDays(temperatures: number[], threshold: number): number[] {
// - Log temperatures that exceed the threshold to the console IN DEGREES CELSIUS (hint: you can combine all previous functions)
function logHottestDays(temperatures: number[], threshold: number): void {
// write your code here...
temperatures.filter(t => t >= threshold).map(temp => (temp - 32) * (5/9)).forEach(e => console.log(e));

Choose a reason for hiding this comment

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

Why not reuse the functions you already defined?

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