-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: main
Are you sure you want to change the base?
Conversation
simple/sumTwoNumbers.js
Outdated
let num1 = 5 | ||
let num2 = 10 | ||
|
||
sum(num1 , num2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
نیازی نیست خودتون اینجا مجددا استفاده کنید sum رو در تمرین های قبلی هم همین کارو کردید کلا بعد اینکه متوجه شدید درست کار میکنه تست حذف کنید این خط رو فقط خود تابع exports بشه حله
simple/evenOrOdd.js
Outdated
let num1 = 20 | ||
let num2 = 15 | ||
isEvenOrOdd(num1) | ||
isEvenOrOdd(num2) |
There was a problem hiding this comment.
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)
نوشتن این چهارتا خط هم ضروری نیست
simple/evenOrOdd.js
Outdated
return 'Even' | ||
} else { | ||
return 'Odd' | ||
} |
There was a problem hiding this comment.
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 بنویس
@Hesammousavi |
Update isPalindrome.js
19 questions solved
3 questions left