File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
problemSolvingPractices/problems/p3-ConversionTool Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ function DeicmalToBinary(Decimal){
123123 const octets = Decimal . split ( '.' )
124124
125125 // more error checks
126- if ( octets . length !== 4 ) return errorMsg4
126+ // if (octets.length !== 4) return errorMsg4
127127
128128 if ( octets [ 0 ] . length > 3 || octets [ 0 ] . length < 1 ) return errorMsg5
129129 if ( octets [ 1 ] . length > 3 || octets [ 1 ] . length < 1 ) return errorMsg5
@@ -159,7 +159,7 @@ function DeicmalToBinary(Decimal){
159159
160160 let octetTwo = Number ( octets [ 1 ] )
161161
162- if ( Number . isNaN ( octetTwos ) ) return errorMsg4
162+ if ( Number . isNaN ( octetTwo ) ) return errorMsg4
163163 if ( octetTwo < 0 || octetTwo > 255 ) return errorMsg6
164164
165165 for ( let i = 0 ; i < chart . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments