Skip to content

Mariam Alobaid & Zainab Alarbash#3

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

Mariam Alobaid & Zainab Alarbash#3
ZainabAA wants to merge 1 commit intoJoinCODED:mainfrom
ZainabAA:main

Conversation

@ZainabAA
Copy link

@ZainabAA ZainabAA commented Mar 9, 2025

finished tasks

function isOdd(n: number): boolean {
// Your code here

if(n%2 !== 0)

Choose a reason for hiding this comment

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

You can also just do:

function isOdd(n: number): boolean {
    return n%2 !== 0;
}

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