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
| // TODO: Implement this function | ||
| numerator = Math.abs(numerator); | ||
| denominator = Math.abs(denominator); | ||
| if (numerator<denominator) |
There was a problem hiding this comment.
Could this if condition be simplified?
There was a problem hiding this comment.
return numerator < denominator
| } | ||
|
|
||
| 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
Learners, PR Template
Self checklist
Changelist
all tasks under sprint 3 - implement and rewrite-test with jest has been done