Skip to content
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

Narges Barani (Solved exercises) #3

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

nrgsbarani
Copy link

19 questions solved
3 questions left

let num1 = 5
let num2 = 10

sum(num1 , num2)
Copy link
Owner

Choose a reason for hiding this comment

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

نیازی نیست خودتون اینجا مجددا استفاده کنید sum رو در تمرین های قبلی هم همین کارو کردید کلا بعد اینکه متوجه شدید درست کار میکنه تست حذف کنید این خط رو فقط خود تابع exports بشه حله

let num1 = 20
let num2 = 15
isEvenOrOdd(num1)
isEvenOrOdd(num2)
Copy link
Owner

Choose a reason for hiding this comment

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

let num1 = 20
let num2 = 15
isEvenOrOdd(num1)
isEvenOrOdd(num2)

نوشتن این چهارتا خط هم ضروری نیست

return 'Even'
} else {
return 'Odd'
}
Copy link
Owner

Choose a reason for hiding this comment

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

‍```
if (number % 2 == 0) {
return 'Even'
} else {
return 'Odd'
}

```

این رو تو یه خط به شکل short بنویس

@nrgsbarani
Copy link
Author

@Hesammousavi
سلام تمامی 22 تمرین با موفقیت انجام شد و همه تست ها پاس شدند.
تمرین هایی که نیاز به بازنویسی داشتند ویرایش شدند.

shaghayeghbeyki78 pushed a commit to shaghayeghbeyki78/exersises that referenced this pull request Feb 24, 2025
shaghayeghbeyki78 pushed a commit to shaghayeghbeyki78/exersises that referenced this pull request Feb 24, 2025
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