mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-13 08:32:54 +08:00
fix(curriculum): decimal to binary converter - Confusing quotes (#55550)
This commit is contained in:
-2
@@ -13,8 +13,6 @@ Set the value of the `msg` property to the following string:
|
||||
"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."
|
||||
```
|
||||
|
||||
Note that, since the string itself contains double quotation marks, you'll need to escape them with a backslash, or use single quotation marks for your string value.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should add the property `msg` to the animation object at the top of the stack.
|
||||
|
||||
+1
-1
@@ -192,7 +192,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.'
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."
|
||||
}
|
||||
--fcc-editable-region--
|
||||
];
|
||||
|
||||
+1
-1
@@ -217,7 +217,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
}
|
||||
|
||||
+1
-1
@@ -220,7 +220,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
}
|
||||
|
||||
+1
-1
@@ -188,7 +188,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
}
|
||||
|
||||
+1
-1
@@ -170,7 +170,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
}
|
||||
|
||||
+1
-1
@@ -179,7 +179,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
}
|
||||
|
||||
+1
-1
@@ -188,7 +188,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
}
|
||||
|
||||
+1
-1
@@ -179,7 +179,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
}
|
||||
|
||||
+1
-1
@@ -190,7 +190,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
}
|
||||
|
||||
+2
-2
@@ -170,7 +170,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
}
|
||||
@@ -368,7 +368,7 @@ const animationData = [
|
||||
inputVal: 1,
|
||||
marginTop: -200,
|
||||
addElDelay: 2000,
|
||||
msg: 'decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.',
|
||||
msg: "decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack.",
|
||||
showMsgDelay: 5000,
|
||||
removeElDelay: 10000,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user