Skip to content

Razan Alkhateeb - part1 Task#12

Open
Rznalkh wants to merge 1 commit intoJoinCODED:mainfrom
Rznalkh:main
Open

Razan Alkhateeb - part1 Task#12
Rznalkh wants to merge 1 commit intoJoinCODED:mainfrom
Rznalkh:main

Conversation

@Rznalkh
Copy link

@Rznalkh Rznalkh commented Mar 11, 2025

prettier is not working yet :/

// - 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

Comments