fix(curriculum): change to const numbers from RPG step 162 (#52857)

This commit is contained in:
Duong The Pham
2024-01-01 19:00:57 +01:00
committed by GitHub
parent 44806f7f78
commit 51260e81a3
15 changed files with 16 additions and 16 deletions
@@ -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--
@@ -383,7 +383,7 @@ function pickEight() {
--fcc-editable-region--
function pick(guess) {
let numbers = [];
const numbers = [];
}
--fcc-editable-region--
@@ -379,7 +379,7 @@ function pickEight() {
--fcc-editable-region--
function pick(guess) {
let numbers = [];
const numbers = [];
while (numbers.length < 10) {
}
@@ -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));
}
@@ -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));
}
@@ -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));
}
@@ -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));
}
@@ -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));
}
@@ -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));
}
@@ -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));
}
@@ -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));
}
@@ -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));
}
@@ -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));
}
@@ -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));
}
@@ -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));
}