Skip to content

Commit 7a2c63d

Browse files
committed
fix small typo
1 parent 8025e29 commit 7a2c63d

File tree

1 file changed

+2
-2
lines changed
  • problemSolvingPractices/problems/p3-ConversionTool

1 file changed

+2
-2
lines changed

problemSolvingPractices/problems/p3-ConversionTool/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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++) {

0 commit comments

Comments
 (0)