mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 12:13:31 +08:00
fix(curriculum): change to const numbers from RPG step 162 (#52857)
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ dashedName: step-162
|
||||
|
||||
# --description--
|
||||
|
||||
Inside `pick`, use `let` to initialize a variable named `numbers` and set it to an empty array.
|
||||
Inside `pick`, use `const` to initialize a variable named `numbers` and set it to an empty array.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
+1
-1
@@ -383,7 +383,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
|
||||
}
|
||||
--fcc-editable-region--
|
||||
|
||||
+1
-1
@@ -379,7 +379,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -379,7 +379,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -367,7 +367,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -373,7 +373,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -371,7 +371,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -369,7 +369,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -369,7 +369,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -386,7 +386,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -382,7 +382,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -379,7 +379,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -385,7 +385,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+1
-1
@@ -380,7 +380,7 @@ function pickEight() {
|
||||
|
||||
--fcc-editable-region--
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
+2
-2
@@ -370,7 +370,7 @@ function pickEight() {
|
||||
}
|
||||
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
@@ -740,7 +740,7 @@ function pickEight() {
|
||||
}
|
||||
|
||||
function pick(guess) {
|
||||
let numbers = [];
|
||||
const numbers = [];
|
||||
while (numbers.length < 10) {
|
||||
numbers.push(Math.floor(Math.random() * 11));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user