London | 25 -ITP-May | Dagim Daniel | Sprint 3 | implement and rewrite-test with jest#1473
Conversation
…-card-value add line 37 to 40 and also done with the rewrite tests with jest tasks.
…t of get-card-value add line 37 to 40 and also done with the rewrite tests with jest tasks." This reverts commit c822d53.
…-card-value adding line 37 to line 40 and i also completed the rewrite-test with jest section - i revert a commit so i work on it again and re- commit it( problem was the jest edited the jason file -version)
This comment has been minimized.
This comment has been minimized.
…fied get-card-value adding line 37 to line 40 and i also completed the rewrite-test with jest section - i revert a commit so i work on it again and re- commit it( problem was the jest edited the jason file -version)" This reverts commit 927466a.
LonMcGregor
left a comment
There was a problem hiding this comment.
Good work on these tasks. The implementations are working, but could be improved a bit more if you follow my comments
| function getAngleType(angle) { | ||
| // TODO: Implement this function | ||
| if (angle>0 && angle<90) | ||
| { |
There was a problem hiding this comment.
Did you remember to format this code?
There was a problem hiding this comment.
i didn't get you, LonMcGregor sorry
There was a problem hiding this comment.
The indentation and organisation of symbols is a bit odd, did you run the formatter in your IDE before committing?
| } | ||
|
|
||
| const numvalue = Number(value); | ||
| if (numvalue >= 2 && numvalue <= 10) { |
There was a problem hiding this comment.
Does this if condition need to be here? (Hint: compare it to the earlier if conditions)
There was a problem hiding this comment.
i guess so, because the other if condition was for throw error. with out this if condition it wouldn't give us the the numvalue within this scop
There was a problem hiding this comment.
You already have an if check for >2 and <10, do you need both of them?
| } | ||
|
|
||
| const numvalue = Number(value); | ||
| if (numvalue >= 2 && numvalue <= 10) { |
There was a problem hiding this comment.
You already have an if check for >2 and <10, do you need both of them?
| function getAngleType(angle) { | ||
| // TODO: Implement this function | ||
| if (angle>0 && angle<90) | ||
| { |
There was a problem hiding this comment.
The indentation and organisation of symbols is a bit odd, did you run the formatter in your IDE before committing?
LonMcGregor
left a comment
There was a problem hiding this comment.
Thanks for updating this, I hope it makes sense how it is easier to read the code after these changes
yeah, you are right, its easier to read now. thank you |
Learners, PR Template
Self checklist
Changelist
all tasks under sprint 3 - implement and rewrite-test with jest has been done