Skip to content

Humoud AlGhanim#2

Open
HAlGhanim wants to merge 2 commits intoJoinCODED:mainfrom
HAlGhanim:main
Open

Humoud AlGhanim#2
HAlGhanim wants to merge 2 commits intoJoinCODED:mainfrom
HAlGhanim:main

Conversation

@HAlGhanim
Copy link

No description provided.

// Your code here

return false; // replace false with what you see is fit
return n % 2 !== 0 ? true : false; // replace false with what you see is fit

Choose a reason for hiding this comment

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

You can omit the true and falst part and just do:

return n % 2 !== 0;

Since that is a boolean condition it will return the true or false.

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