mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-25 10:47:00 +08:00
fix(curriculum): remove all instances of teaching var in RPG game (#53166)
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
co-authored by
Krzysztof G.
parent
cddf4b5fc8
commit
188b3c9717
+151
-155
@@ -105,612 +105,608 @@
|
||||
"title": "Step 23"
|
||||
},
|
||||
{
|
||||
"id": "62a3b365f1cdeb33efc2502e",
|
||||
"id": "62a3b3eab50e193608c19fc6",
|
||||
"title": "Step 24"
|
||||
},
|
||||
{
|
||||
"id": "62a3b3eab50e193608c19fc6",
|
||||
"id": "62a3b41c9494f937560640ab",
|
||||
"title": "Step 25"
|
||||
},
|
||||
{
|
||||
"id": "62a3b41c9494f937560640ab",
|
||||
"id": "62a3b49686792938718b90d3",
|
||||
"title": "Step 26"
|
||||
},
|
||||
{
|
||||
"id": "62a3b49686792938718b90d3",
|
||||
"id": "62a3b506dbaead396f58a701",
|
||||
"title": "Step 27"
|
||||
},
|
||||
{
|
||||
"id": "62a3b506dbaead396f58a701",
|
||||
"id": "62a3b5843544ce3a77459c27",
|
||||
"title": "Step 28"
|
||||
},
|
||||
{
|
||||
"id": "62a3b5843544ce3a77459c27",
|
||||
"id": "62a3b79d520a7f3d0e25afd6",
|
||||
"title": "Step 29"
|
||||
},
|
||||
{
|
||||
"id": "62a3b79d520a7f3d0e25afd6",
|
||||
"id": "62b46e3a8d4be31be5af793d",
|
||||
"title": "Step 30"
|
||||
},
|
||||
{
|
||||
"id": "62b46e3a8d4be31be5af793d",
|
||||
"id": "62a3bb9aeefe4b3fc43c6d7b",
|
||||
"title": "Step 31"
|
||||
},
|
||||
{
|
||||
"id": "62a3bb9aeefe4b3fc43c6d7b",
|
||||
"id": "62fc20387ef88d1d1998aac5",
|
||||
"title": "Step 32"
|
||||
},
|
||||
{
|
||||
"id": "62fc20387ef88d1d1998aac5",
|
||||
"id": "62a3bec30ea7f941412512dc",
|
||||
"title": "Step 33"
|
||||
},
|
||||
{
|
||||
"id": "62a3bec30ea7f941412512dc",
|
||||
"id": "62fc211760bfc220f4734800",
|
||||
"title": "Step 34"
|
||||
},
|
||||
{
|
||||
"id": "62fc211760bfc220f4734800",
|
||||
"id": "62a3c668afc43b4a134cca81",
|
||||
"title": "Step 35"
|
||||
},
|
||||
{
|
||||
"id": "62a3c668afc43b4a134cca81",
|
||||
"id": "62a3c8bf3980c14c438d2aed",
|
||||
"title": "Step 36"
|
||||
},
|
||||
{
|
||||
"id": "62a3c8bf3980c14c438d2aed",
|
||||
"id": "62a3c91a2bab1b4d6fabb726",
|
||||
"title": "Step 37"
|
||||
},
|
||||
{
|
||||
"id": "62a3c91a2bab1b4d6fabb726",
|
||||
"id": "62a3cdb11478a34ff4a6470d",
|
||||
"title": "Step 38"
|
||||
},
|
||||
{
|
||||
"id": "62a3cdb11478a34ff4a6470d",
|
||||
"id": "62a3c0ab883fd9435cd5c518",
|
||||
"title": "Step 39"
|
||||
},
|
||||
{
|
||||
"id": "62a3c0ab883fd9435cd5c518",
|
||||
"id": "62a3c2fccf186146b59c6e96",
|
||||
"title": "Step 40"
|
||||
},
|
||||
{
|
||||
"id": "62a3c2fccf186146b59c6e96",
|
||||
"id": "62a3c4a0e52767482c5202d4",
|
||||
"title": "Step 41"
|
||||
},
|
||||
{
|
||||
"id": "62a3c4a0e52767482c5202d4",
|
||||
"id": "62a3cfc8328d3351b95d4f61",
|
||||
"title": "Step 42"
|
||||
},
|
||||
{
|
||||
"id": "62a3cfc8328d3351b95d4f61",
|
||||
"id": "62a7beb1ad61211ac153707f",
|
||||
"title": "Step 43"
|
||||
},
|
||||
{
|
||||
"id": "62a7beb1ad61211ac153707f",
|
||||
"id": "62a7bf06d2ad9d1c5024e833",
|
||||
"title": "Step 44"
|
||||
},
|
||||
{
|
||||
"id": "62a7bf06d2ad9d1c5024e833",
|
||||
"id": "62a7bfabe119461eb13ccbd6",
|
||||
"title": "Step 45"
|
||||
},
|
||||
{
|
||||
"id": "62a7bfabe119461eb13ccbd6",
|
||||
"id": "62a7bfd9179b7f1f6a15fb1e",
|
||||
"title": "Step 46"
|
||||
},
|
||||
{
|
||||
"id": "62a7bfd9179b7f1f6a15fb1e",
|
||||
"id": "62a7c011eef9fb2084b966db",
|
||||
"title": "Step 47"
|
||||
},
|
||||
{
|
||||
"id": "62a7c011eef9fb2084b966db",
|
||||
"id": "62a7c071219da921758a35bb",
|
||||
"title": "Step 48"
|
||||
},
|
||||
{
|
||||
"id": "62a7c071219da921758a35bb",
|
||||
"id": "62a7c23e6b511f22ed71197a",
|
||||
"title": "Step 49"
|
||||
},
|
||||
{
|
||||
"id": "62a7c23e6b511f22ed71197a",
|
||||
"id": "62a7cc99577fbf25ee7a7d76",
|
||||
"title": "Step 50"
|
||||
},
|
||||
{
|
||||
"id": "62a7cc99577fbf25ee7a7d76",
|
||||
"id": "62a8a929e4260d08093756d2",
|
||||
"title": "Step 51"
|
||||
},
|
||||
{
|
||||
"id": "62a8a929e4260d08093756d2",
|
||||
"id": "62a8a9d876b2580943ba9351",
|
||||
"title": "Step 52"
|
||||
},
|
||||
{
|
||||
"id": "62a8a9d876b2580943ba9351",
|
||||
"id": "62a8aa98a8289d0a698eee1d",
|
||||
"title": "Step 53"
|
||||
},
|
||||
{
|
||||
"id": "62a8aa98a8289d0a698eee1d",
|
||||
"id": "62a8ab0e27cbaf0b54ba8a42",
|
||||
"title": "Step 54"
|
||||
},
|
||||
{
|
||||
"id": "62a8ab0e27cbaf0b54ba8a42",
|
||||
"id": "62a8ac194679e60cb561b0a8",
|
||||
"title": "Step 55"
|
||||
},
|
||||
{
|
||||
"id": "62a8ac194679e60cb561b0a8",
|
||||
"id": "62a8ad8e01d7cb0deae5ec66",
|
||||
"title": "Step 56"
|
||||
},
|
||||
{
|
||||
"id": "62a8ad8e01d7cb0deae5ec66",
|
||||
"id": "62a8ade9b2f5b30ef0b606c2",
|
||||
"title": "Step 57"
|
||||
},
|
||||
{
|
||||
"id": "62a8ade9b2f5b30ef0b606c2",
|
||||
"id": "62a8ae85fcaedc0fddc7ca4f",
|
||||
"title": "Step 58"
|
||||
},
|
||||
{
|
||||
"id": "62a8ae85fcaedc0fddc7ca4f",
|
||||
"id": "62a8b0b5053f16111b0b6b5f",
|
||||
"title": "Step 59"
|
||||
},
|
||||
{
|
||||
"id": "62a8b0b5053f16111b0b6b5f",
|
||||
"id": "62a8b1762b7775124622e1a3",
|
||||
"title": "Step 60"
|
||||
},
|
||||
{
|
||||
"id": "62a8b1762b7775124622e1a3",
|
||||
"id": "62a8b3cc436db8139cc5fc09",
|
||||
"title": "Step 61"
|
||||
},
|
||||
{
|
||||
"id": "62a8b3cc436db8139cc5fc09",
|
||||
"id": "62a8b6536156c51500739b41",
|
||||
"title": "Step 62"
|
||||
},
|
||||
{
|
||||
"id": "62a8b6536156c51500739b41",
|
||||
"id": "62a8b711ab7a12161c7d9b67",
|
||||
"title": "Step 63"
|
||||
},
|
||||
{
|
||||
"id": "62a8b711ab7a12161c7d9b67",
|
||||
"id": "62a8b9770050d217d2247801",
|
||||
"title": "Step 64"
|
||||
},
|
||||
{
|
||||
"id": "62a8b9770050d217d2247801",
|
||||
"id": "62a8c0c8313e891a15ec23e7",
|
||||
"title": "Step 65"
|
||||
},
|
||||
{
|
||||
"id": "62a8c0c8313e891a15ec23e7",
|
||||
"id": "62a8c1154d3ae11aee80353f",
|
||||
"title": "Step 66"
|
||||
},
|
||||
{
|
||||
"id": "62a8c1154d3ae11aee80353f",
|
||||
"id": "62a8c151b23bf21bc7c4fcba",
|
||||
"title": "Step 67"
|
||||
},
|
||||
{
|
||||
"id": "62a8c151b23bf21bc7c4fcba",
|
||||
"id": "62a8c173949f851c83c64756",
|
||||
"title": "Step 68"
|
||||
},
|
||||
{
|
||||
"id": "62a8c173949f851c83c64756",
|
||||
"id": "62a8c242b25a531f2909e5bc",
|
||||
"title": "Step 69"
|
||||
},
|
||||
{
|
||||
"id": "62a8c242b25a531f2909e5bc",
|
||||
"id": "62a8c2bbbd8aa82052f47c53",
|
||||
"title": "Step 70"
|
||||
},
|
||||
{
|
||||
"id": "62a8c2bbbd8aa82052f47c53",
|
||||
"id": "62a8c31ec0ec78216a1c36a0",
|
||||
"title": "Step 71"
|
||||
},
|
||||
{
|
||||
"id": "62a8c31ec0ec78216a1c36a0",
|
||||
"id": "62a8c370ad8c68227137e0bc",
|
||||
"title": "Step 72"
|
||||
},
|
||||
{
|
||||
"id": "62a8c370ad8c68227137e0bc",
|
||||
"id": "62a8c3ebc6c35e23785e1a19",
|
||||
"title": "Step 73"
|
||||
},
|
||||
{
|
||||
"id": "62a8c3ebc6c35e23785e1a19",
|
||||
"id": "62a8c41ecaf1bd24536129b8",
|
||||
"title": "Step 74"
|
||||
},
|
||||
{
|
||||
"id": "62a8c41ecaf1bd24536129b8",
|
||||
"id": "62a8c465fa7b0c252f4a8f0c",
|
||||
"title": "Step 75"
|
||||
},
|
||||
{
|
||||
"id": "62a8c465fa7b0c252f4a8f0c",
|
||||
"id": "62a8c4db0710f3260f867a92",
|
||||
"title": "Step 76"
|
||||
},
|
||||
{
|
||||
"id": "62a8c4db0710f3260f867a92",
|
||||
"id": "62a8c56247609626fa4a8d6e",
|
||||
"title": "Step 77"
|
||||
},
|
||||
{
|
||||
"id": "62a8c56247609626fa4a8d6e",
|
||||
"id": "62a8c5db7888af27af23f0dd",
|
||||
"title": "Step 78"
|
||||
},
|
||||
{
|
||||
"id": "62a8c5db7888af27af23f0dd",
|
||||
"id": "62a8c65b75664c28a8e59c16",
|
||||
"title": "Step 79"
|
||||
},
|
||||
{
|
||||
"id": "62a8c65b75664c28a8e59c16",
|
||||
"id": "62a8c6815f5f1a29735efe1b",
|
||||
"title": "Step 80"
|
||||
},
|
||||
{
|
||||
"id": "62a8c6815f5f1a29735efe1b",
|
||||
"id": "62a8c7322e42962ad53ad204",
|
||||
"title": "Step 81"
|
||||
},
|
||||
{
|
||||
"id": "62a8c7322e42962ad53ad204",
|
||||
"id": "62a8c7a59e72c02bb1c717d2",
|
||||
"title": "Step 82"
|
||||
},
|
||||
{
|
||||
"id": "62a8c7a59e72c02bb1c717d2",
|
||||
"id": "62a8c89e4272512d44fc1c66",
|
||||
"title": "Step 83"
|
||||
},
|
||||
{
|
||||
"id": "62a8c89e4272512d44fc1c66",
|
||||
"id": "62a8c8cee8e5cf2e001789b4",
|
||||
"title": "Step 84"
|
||||
},
|
||||
{
|
||||
"id": "62a8c8cee8e5cf2e001789b4",
|
||||
"id": "62a8ca22d29fe62f3952bdf5",
|
||||
"title": "Step 85"
|
||||
},
|
||||
{
|
||||
"id": "62a8ca22d29fe62f3952bdf5",
|
||||
"id": "62a8cb19bd7f8a304e5427a1",
|
||||
"title": "Step 86"
|
||||
},
|
||||
{
|
||||
"id": "62a8cb19bd7f8a304e5427a1",
|
||||
"id": "62a8cbd1e3595431d5a2b3f1",
|
||||
"title": "Step 87"
|
||||
},
|
||||
{
|
||||
"id": "62a8cbd1e3595431d5a2b3f1",
|
||||
"id": "62a8cce1b0c32c33017cf2e9",
|
||||
"title": "Step 88"
|
||||
},
|
||||
{
|
||||
"id": "62a8cce1b0c32c33017cf2e9",
|
||||
"id": "62a8ce1dfc990134162b3bd9",
|
||||
"title": "Step 89"
|
||||
},
|
||||
{
|
||||
"id": "62a8ce1dfc990134162b3bd9",
|
||||
"id": "62a8ce73d0dce43468f6689c",
|
||||
"title": "Step 90"
|
||||
},
|
||||
{
|
||||
"id": "62a8ce73d0dce43468f6689c",
|
||||
"id": "62a8cf22272d6d35af80d4ac",
|
||||
"title": "Step 91"
|
||||
},
|
||||
{
|
||||
"id": "62a8cf22272d6d35af80d4ac",
|
||||
"id": "62a8d0337d7c67377a4a76c6",
|
||||
"title": "Step 92"
|
||||
},
|
||||
{
|
||||
"id": "62a8d0337d7c67377a4a76c6",
|
||||
"id": "62a8d08668fa8b38732486e9",
|
||||
"title": "Step 93"
|
||||
},
|
||||
{
|
||||
"id": "62a8d08668fa8b38732486e9",
|
||||
"id": "62a8d0c4f12c2239b6618582",
|
||||
"title": "Step 94"
|
||||
},
|
||||
{
|
||||
"id": "62a8d0c4f12c2239b6618582",
|
||||
"id": "62a8d0fdf2dad83a92883a80",
|
||||
"title": "Step 95"
|
||||
},
|
||||
{
|
||||
"id": "62a8d0fdf2dad83a92883a80",
|
||||
"id": "62a8d143f2a58e3b6d6e9c33",
|
||||
"title": "Step 96"
|
||||
},
|
||||
{
|
||||
"id": "62a8d143f2a58e3b6d6e9c33",
|
||||
"id": "62a8d1c72e8bb13c2074d93c",
|
||||
"title": "Step 97"
|
||||
},
|
||||
{
|
||||
"id": "62a8d1c72e8bb13c2074d93c",
|
||||
"id": "62a8d2146a3e853d0a6e28ca",
|
||||
"title": "Step 98"
|
||||
},
|
||||
{
|
||||
"id": "62a8d2146a3e853d0a6e28ca",
|
||||
"id": "62a8d24c97461b3ddb9397c8",
|
||||
"title": "Step 99"
|
||||
},
|
||||
{
|
||||
"id": "62a8d24c97461b3ddb9397c8",
|
||||
"id": "62a8d2e2a073be3edb46116f",
|
||||
"title": "Step 100"
|
||||
},
|
||||
{
|
||||
"id": "62a8d2e2a073be3edb46116f",
|
||||
"id": "62a8d31ebbc10e3fe1b28e03",
|
||||
"title": "Step 101"
|
||||
},
|
||||
{
|
||||
"id": "62a8d31ebbc10e3fe1b28e03",
|
||||
"id": "62a8d35660db4040ba292193",
|
||||
"title": "Step 102"
|
||||
},
|
||||
{
|
||||
"id": "62a8d35660db4040ba292193",
|
||||
"id": "62a8d382cd075f4169223e14",
|
||||
"title": "Step 103"
|
||||
},
|
||||
{
|
||||
"id": "62a8d382cd075f4169223e14",
|
||||
"id": "62a8d539dc11cb42b5dd7ec8",
|
||||
"title": "Step 104"
|
||||
},
|
||||
{
|
||||
"id": "62a8d539dc11cb42b5dd7ec8",
|
||||
"id": "62a8d61ddfe35744369365b7",
|
||||
"title": "Step 105"
|
||||
},
|
||||
{
|
||||
"id": "62a8d61ddfe35744369365b7",
|
||||
"id": "62a8d6c7001ebc45350e3d16",
|
||||
"title": "Step 106"
|
||||
},
|
||||
{
|
||||
"id": "62a8d6c7001ebc45350e3d16",
|
||||
"id": "62a8d7b8ab568b4649998954",
|
||||
"title": "Step 107"
|
||||
},
|
||||
{
|
||||
"id": "62a8d7b8ab568b4649998954",
|
||||
"id": "62a8d81f539f004776dd9b1e",
|
||||
"title": "Step 108"
|
||||
},
|
||||
{
|
||||
"id": "62a8d81f539f004776dd9b1e",
|
||||
"id": "62a8dd468debb449b4454086",
|
||||
"title": "Step 109"
|
||||
},
|
||||
{
|
||||
"id": "62a8dd468debb449b4454086",
|
||||
"id": "62a8dd9cdb16324b04cfd958",
|
||||
"title": "Step 110"
|
||||
},
|
||||
{
|
||||
"id": "62a8dd9cdb16324b04cfd958",
|
||||
"id": "62a8dfcf7fb1044d2f478fd1",
|
||||
"title": "Step 111"
|
||||
},
|
||||
{
|
||||
"id": "62a8dfcf7fb1044d2f478fd1",
|
||||
"id": "62a8e0d1d0110b4ec421489f",
|
||||
"title": "Step 112"
|
||||
},
|
||||
{
|
||||
"id": "62a8e0d1d0110b4ec421489f",
|
||||
"id": "62a8e142f7f0bd4fed898de3",
|
||||
"title": "Step 113"
|
||||
},
|
||||
{
|
||||
"id": "62a8e142f7f0bd4fed898de3",
|
||||
"id": "62a8e1dc897df55108bcb5e8",
|
||||
"title": "Step 114"
|
||||
},
|
||||
{
|
||||
"id": "62a8e1dc897df55108bcb5e8",
|
||||
"id": "62a8e21398ad61520edb724f",
|
||||
"title": "Step 115"
|
||||
},
|
||||
{
|
||||
"id": "62a8e21398ad61520edb724f",
|
||||
"id": "62a8e24c673b075317cc0b09",
|
||||
"title": "Step 116"
|
||||
},
|
||||
{
|
||||
"id": "62a8e24c673b075317cc0b09",
|
||||
"id": "62a8e271f8e3d1541f9624ad",
|
||||
"title": "Step 117"
|
||||
},
|
||||
{
|
||||
"id": "62a8e271f8e3d1541f9624ad",
|
||||
"id": "62a8e35675c18c56354c08cf",
|
||||
"title": "Step 118"
|
||||
},
|
||||
{
|
||||
"id": "62a8e35675c18c56354c08cf",
|
||||
"id": "62a8e41e2f190c58404dd46e",
|
||||
"title": "Step 119"
|
||||
},
|
||||
{
|
||||
"id": "62a8e41e2f190c58404dd46e",
|
||||
"id": "62a8e45cc600c3591cee671a",
|
||||
"title": "Step 120"
|
||||
},
|
||||
{
|
||||
"id": "62a8e45cc600c3591cee671a",
|
||||
"id": "62a8e49f4df7af5ae2d7a616",
|
||||
"title": "Step 121"
|
||||
},
|
||||
{
|
||||
"id": "62a8e49f4df7af5ae2d7a616",
|
||||
"id": "62a8e4dc6a60f85bf256a0cb",
|
||||
"title": "Step 122"
|
||||
},
|
||||
{
|
||||
"id": "62a8e4dc6a60f85bf256a0cb",
|
||||
"id": "62a8ed36d7a7915dfa444ba2",
|
||||
"title": "Step 123"
|
||||
},
|
||||
{
|
||||
"id": "62a8ed36d7a7915dfa444ba2",
|
||||
"id": "62a8edd05e27cc668051686f",
|
||||
"title": "Step 124"
|
||||
},
|
||||
{
|
||||
"id": "62a8edd05e27cc668051686f",
|
||||
"id": "62a8ee154c8946678775c4a4",
|
||||
"title": "Step 125"
|
||||
},
|
||||
{
|
||||
"id": "62a8ee154c8946678775c4a4",
|
||||
"id": "62a8ee71f018e968a056d369",
|
||||
"title": "Step 126"
|
||||
},
|
||||
{
|
||||
"id": "62a8ee71f018e968a056d369",
|
||||
"id": "62a8eec45f77bc69e8775294",
|
||||
"title": "Step 127"
|
||||
},
|
||||
{
|
||||
"id": "62a8eec45f77bc69e8775294",
|
||||
"id": "62a8eefe2e68b66ac563816b",
|
||||
"title": "Step 128"
|
||||
},
|
||||
{
|
||||
"id": "62a8eefe2e68b66ac563816b",
|
||||
"id": "62a8ef6a52292f6bdca4f6f8",
|
||||
"title": "Step 129"
|
||||
},
|
||||
{
|
||||
"id": "62a8ef6a52292f6bdca4f6f8",
|
||||
"id": "62a8ef8f0c76a46cd221a68c",
|
||||
"title": "Step 130"
|
||||
},
|
||||
{
|
||||
"id": "62a8ef8f0c76a46cd221a68c",
|
||||
"id": "62a8efb0e3ce826db8daf80f",
|
||||
"title": "Step 131"
|
||||
},
|
||||
{
|
||||
"id": "62a8efb0e3ce826db8daf80f",
|
||||
"id": "62a8eff21c0b0f6ebe5b8e38",
|
||||
"title": "Step 132"
|
||||
},
|
||||
{
|
||||
"id": "62a8eff21c0b0f6ebe5b8e38",
|
||||
"id": "62a8f06fb318666fef69f91e",
|
||||
"title": "Step 133"
|
||||
},
|
||||
{
|
||||
"id": "62a8f06fb318666fef69f91e",
|
||||
"id": "62a8f14fe6d1fc72454648c7",
|
||||
"title": "Step 134"
|
||||
},
|
||||
{
|
||||
"id": "62a8f14fe6d1fc72454648c7",
|
||||
"id": "62a8f1d5f5ddbf74c07f733b",
|
||||
"title": "Step 135"
|
||||
},
|
||||
{
|
||||
"id": "62a8f1d5f5ddbf74c07f733b",
|
||||
"id": "62a8f20463b324759953edad",
|
||||
"title": "Step 136"
|
||||
},
|
||||
{
|
||||
"id": "62a8f20463b324759953edad",
|
||||
"id": "62ba17beef16c563069a65d8",
|
||||
"title": "Step 137"
|
||||
},
|
||||
{
|
||||
"id": "62ba17beef16c563069a65d8",
|
||||
"id": "62a8f256b813a476cae51f49",
|
||||
"title": "Step 138"
|
||||
},
|
||||
{
|
||||
"id": "62a8f256b813a476cae51f49",
|
||||
"id": "62a8f35bde1750791f58773f",
|
||||
"title": "Step 139"
|
||||
},
|
||||
{
|
||||
"id": "62a8f35bde1750791f58773f",
|
||||
"id": "62a94114ce0b8918b487390f",
|
||||
"title": "Step 140"
|
||||
},
|
||||
{
|
||||
"id": "62a94114ce0b8918b487390f",
|
||||
"id": "62aa1cea594f152ba626b872",
|
||||
"title": "Step 141"
|
||||
},
|
||||
{
|
||||
"id": "62aa1cea594f152ba626b872",
|
||||
"id": "62aa1d6736ba262cfa74344b",
|
||||
"title": "Step 142"
|
||||
},
|
||||
{
|
||||
"id": "62aa1d6736ba262cfa74344b",
|
||||
"id": "62aa1d9f535e102e4663e7a6",
|
||||
"title": "Step 143"
|
||||
},
|
||||
{
|
||||
"id": "62aa1d9f535e102e4663e7a6",
|
||||
"id": "62aa1e3c7c3d552fb04f0f18",
|
||||
"title": "Step 144"
|
||||
},
|
||||
{
|
||||
"id": "62aa1e3c7c3d552fb04f0f18",
|
||||
"id": "62aa1e8ccd579330e097ce44",
|
||||
"title": "Step 145"
|
||||
},
|
||||
{
|
||||
"id": "62aa1e8ccd579330e097ce44",
|
||||
"id": "62aa1eec891ed731db227a36",
|
||||
"title": "Step 146"
|
||||
},
|
||||
{
|
||||
"id": "62aa1eec891ed731db227a36",
|
||||
"id": "62aa1fed3d4e873366ff3131",
|
||||
"title": "Step 147"
|
||||
},
|
||||
{
|
||||
"id": "62aa1fed3d4e873366ff3131",
|
||||
"id": "62aa204c1e1d33348ff09944",
|
||||
"title": "Step 148"
|
||||
},
|
||||
{
|
||||
"id": "62aa204c1e1d33348ff09944",
|
||||
"id": "62aa20e9cf1be9358f5aceae",
|
||||
"title": "Step 149"
|
||||
},
|
||||
{
|
||||
"id": "62aa20e9cf1be9358f5aceae",
|
||||
"id": "62aa2136fc49b836dfedb959",
|
||||
"title": "Step 150"
|
||||
},
|
||||
{
|
||||
"id": "62aa2136fc49b836dfedb959",
|
||||
"id": "62aa21971e3b743844849985",
|
||||
"title": "Step 151"
|
||||
},
|
||||
{
|
||||
"id": "62aa21971e3b743844849985",
|
||||
"id": "62aa21ea8d9d9f396b95dd87",
|
||||
"title": "Step 152"
|
||||
},
|
||||
{
|
||||
"id": "62aa21ea8d9d9f396b95dd87",
|
||||
"id": "62aa226207f33d3ad4c6f546",
|
||||
"title": "Step 153"
|
||||
},
|
||||
{
|
||||
"id": "62aa226207f33d3ad4c6f546",
|
||||
"id": "62aa22aba186563bcbf2c395",
|
||||
"title": "Step 154"
|
||||
},
|
||||
{
|
||||
"id": "62aa22aba186563bcbf2c395",
|
||||
"id": "62aa234322d4ad3e8bce42cc",
|
||||
"title": "Step 155"
|
||||
},
|
||||
{
|
||||
"id": "62aa234322d4ad3e8bce42cc",
|
||||
"id": "62aa2469c77b363fdb4f0e06",
|
||||
"title": "Step 156"
|
||||
},
|
||||
{
|
||||
"id": "62aa2469c77b363fdb4f0e06",
|
||||
"id": "62aa252c3b1073415ba2b898",
|
||||
"title": "Step 157"
|
||||
},
|
||||
{
|
||||
"id": "62aa252c3b1073415ba2b898",
|
||||
"id": "62aa258da314ef42ba0a1858",
|
||||
"title": "Step 158"
|
||||
},
|
||||
{
|
||||
"id": "62aa258da314ef42ba0a1858",
|
||||
"id": "62aa25fcb5837d43b4d9873d",
|
||||
"title": "Step 159"
|
||||
},
|
||||
{
|
||||
"id": "62aa25fcb5837d43b4d9873d",
|
||||
"id": "62aa2626c3c10244b94c787b",
|
||||
"title": "Step 160"
|
||||
},
|
||||
{
|
||||
"id": "62aa2626c3c10244b94c787b",
|
||||
"id": "62aa264d23cdaa45a20efada",
|
||||
"title": "Step 161"
|
||||
},
|
||||
{
|
||||
"id": "62aa264d23cdaa45a20efada",
|
||||
"id": "62aa26cca3cd3d46c431e73b",
|
||||
"title": "Step 162"
|
||||
},
|
||||
{
|
||||
"id": "62aa26cca3cd3d46c431e73b",
|
||||
"id": "62aa27227399d647e1c37a3c",
|
||||
"title": "Step 163"
|
||||
},
|
||||
{
|
||||
"id": "62aa27227399d647e1c37a3c",
|
||||
"id": "62aa27560def7048d7b4a095",
|
||||
"title": "Step 164"
|
||||
},
|
||||
{
|
||||
"id": "62aa27560def7048d7b4a095",
|
||||
"id": "62aa27c40ca6f04ab8be5fac",
|
||||
"title": "Step 165"
|
||||
},
|
||||
{
|
||||
"id": "62aa27c40ca6f04ab8be5fac",
|
||||
"id": "62aa28032d863d4bd8058799",
|
||||
"title": "Step 166"
|
||||
},
|
||||
{
|
||||
"id": "62aa28032d863d4bd8058799",
|
||||
"id": "62aa287434dc284cea01157c",
|
||||
"title": "Step 167"
|
||||
},
|
||||
{
|
||||
"id": "62aa287434dc284cea01157c",
|
||||
"id": "62aa28bbd6323e4dfb3ac43e",
|
||||
"title": "Step 168"
|
||||
},
|
||||
{
|
||||
"id": "62aa28bbd6323e4dfb3ac43e",
|
||||
"id": "62aa28fb651bf14efa2dbb16",
|
||||
"title": "Step 169"
|
||||
},
|
||||
{
|
||||
"id": "62aa28fb651bf14efa2dbb16",
|
||||
"id": "62aa2943669c9d5026af6985",
|
||||
"title": "Step 170"
|
||||
},
|
||||
{
|
||||
"id": "62aa2943669c9d5026af6985",
|
||||
"id": "62aa2999ec27ec516655eba6",
|
||||
"title": "Step 171"
|
||||
},
|
||||
{
|
||||
"id": "62aa2999ec27ec516655eba6",
|
||||
"id": "62aa29d8f8f88152c91350ca",
|
||||
"title": "Step 172"
|
||||
},
|
||||
{
|
||||
"id": "62aa29d8f8f88152c91350ca",
|
||||
"id": "62aa2aec2f09d454253aad6c",
|
||||
"title": "Step 173"
|
||||
},
|
||||
{
|
||||
"id": "62aa2aec2f09d454253aad6c",
|
||||
"title": "Step 174"
|
||||
},
|
||||
{
|
||||
"id": "62aa2ba9cd881355a6f0a5a8",
|
||||
"title": "Step 175"
|
||||
"title": "Step 174"
|
||||
}
|
||||
]
|
||||
}
|
||||
+6
-6
@@ -12,10 +12,10 @@ Remove your `console.log("Hello World");` line to begin writing your project cod
|
||||
In JavaScript, a <dfn>variable</dfn> is used to hold a value. To use a variable, you must first <dfn>declare</dfn> it. For example, to declare a variable called `camperbot`, you would write:
|
||||
|
||||
```js
|
||||
var camperbot;
|
||||
let camperbot;
|
||||
```
|
||||
|
||||
The `var` keyword tells JavaScript you are declaring a variable. Declare a variable called `xp`.
|
||||
The `let` keyword tells JavaScript you are declaring a variable. Declare a variable called `xp`.
|
||||
|
||||
# --hints--
|
||||
|
||||
@@ -25,10 +25,10 @@ You should not have a `console.log("Hello World");` line in your code.
|
||||
assert.notMatch(code, /console\.log\(\s*('|")Hello World\1\s*\)\s*;/);
|
||||
```
|
||||
|
||||
You should use the `var` keyword to declare your variable.
|
||||
You should use the `let` keyword to declare your variable.
|
||||
|
||||
```js
|
||||
assert.match(code, /var/);
|
||||
assert.match(code, /let/);
|
||||
```
|
||||
|
||||
You should declare a variable named `xp`.
|
||||
@@ -40,13 +40,13 @@ assert.match(code, /xp/);
|
||||
You should not assign a value to your variable.
|
||||
|
||||
```js
|
||||
assert.notMatch(code, /var xp =/);
|
||||
assert.notMatch(code, /let xp =/);
|
||||
```
|
||||
|
||||
Don't forget the semi-colon at the end of the line.
|
||||
|
||||
```js
|
||||
assert.match(code, /var xp;/);
|
||||
assert.match(code, /let xp;/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
+3
-3
@@ -10,7 +10,7 @@ dashedName: step-21
|
||||
Variables can be <dfn>assigned</dfn> a value. When you do this while you declare it, this is called <dfn>initialization</dfn>. For example:
|
||||
|
||||
```js
|
||||
var camperbot = "Bot";
|
||||
let camperbot = "Bot";
|
||||
```
|
||||
|
||||
This would initialize the `camperbot` variable with a value of `Bot`, a string.
|
||||
@@ -28,7 +28,7 @@ assert.equal(xp, 0);
|
||||
You should initialize the `xp` variable to `0`. Don't forget the semi-colon at the end of the line.
|
||||
|
||||
```js
|
||||
assert.match(code, /var\s+xp\s*=\s*0\s*;/)
|
||||
assert.match(code, /let\s+xp\s*=\s*0\s*;/)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@@ -118,6 +118,6 @@ button {
|
||||
|
||||
```js
|
||||
--fcc-editable-region--
|
||||
var xp;
|
||||
let xp;
|
||||
--fcc-editable-region--
|
||||
```
|
||||
|
||||
+7
-7
@@ -11,28 +11,28 @@ Initialize another variable called `health` with a value of `100`, and a variabl
|
||||
|
||||
# --hints--
|
||||
|
||||
You should use `var` to declare a variable called `health`.
|
||||
You should use `let` to declare a variable called `health`.
|
||||
|
||||
```js
|
||||
assert.match(code, /var health/);
|
||||
assert.match(code, /let health/);
|
||||
```
|
||||
|
||||
You should initialize a variable called `health` with a value of `100`.
|
||||
|
||||
```js
|
||||
assert.match(code, /var health\s?=\s?100/);
|
||||
assert.match(code, /let health\s?=\s?100/);
|
||||
```
|
||||
|
||||
You should use `var` to declare a variable called `gold`.
|
||||
You should use `let` to declare a variable called `gold`.
|
||||
|
||||
```js
|
||||
assert.match(code, /var gold/);
|
||||
assert.match(code, /let gold/);
|
||||
```
|
||||
|
||||
You should initialize a variable called `gold` with a value of `50`.
|
||||
|
||||
```js
|
||||
assert.match(code, /var gold\s?=\s?50/);
|
||||
assert.match(code, /let gold\s?=\s?50/);
|
||||
```
|
||||
|
||||
`health` should have a value of `100`.
|
||||
@@ -140,6 +140,6 @@ button {
|
||||
|
||||
```js
|
||||
--fcc-editable-region--
|
||||
var xp = 0;
|
||||
let xp = 0;
|
||||
--fcc-editable-region--
|
||||
```
|
||||
|
||||
+11
-7
@@ -7,16 +7,20 @@ dashedName: step-23
|
||||
|
||||
# --description--
|
||||
|
||||
Create another variable called `currentWeapon` and set it to 0.
|
||||
Create another variable called `currentWeapon` and set it to `0`.
|
||||
|
||||
When a variable name has multiple words, the convention in JavaScript is to use what's called <dfn>camelCase</dfn>. The first word is lowercase, and the first letter of every following word is uppercase.
|
||||
|
||||
```js
|
||||
let thisIsCamelCase;
|
||||
```
|
||||
|
||||
# --hints--
|
||||
|
||||
You should use `var` to declare a variable called `currentWeapon`.
|
||||
You should use `let` to declare a variable called `currentWeapon`.
|
||||
|
||||
```js
|
||||
assert.match(code, /var currentweapon/i);
|
||||
assert.match(code, /let currentWeapon/i);
|
||||
```
|
||||
|
||||
You should use camelCase to name your variable.
|
||||
@@ -34,7 +38,7 @@ assert.equal(currentWeapon, 0);
|
||||
You should initialize your variable to `0`.
|
||||
|
||||
```js
|
||||
assert.match(code, /var currentWeapon\s?=\s?0/);
|
||||
assert.match(code, /let currentWeapon\s?=\s?0/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@@ -124,8 +128,8 @@ button {
|
||||
|
||||
```js
|
||||
--fcc-editable-region--
|
||||
var xp = 0;
|
||||
var health = 100;
|
||||
var gold = 50;
|
||||
let xp = 0;
|
||||
let health = 100;
|
||||
let gold = 50;
|
||||
--fcc-editable-region--
|
||||
```
|
||||
|
||||
-147
@@ -1,147 +0,0 @@
|
||||
---
|
||||
id: 62a3b365f1cdeb33efc2502e
|
||||
title: Step 24
|
||||
challengeType: 0
|
||||
dashedName: step-24
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
You have been declaring your variables with the `var` keyword. However, in modern JavaScript it is best practice to use the `let` keyword instead. This fixes several unusual behaviors with `var` that can make your code difficult to debug.
|
||||
|
||||
Change all of your `var` keywords to `let`.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should not have any `var` keywords in your code.
|
||||
|
||||
```js
|
||||
assert.notMatch(code, /var/);
|
||||
```
|
||||
|
||||
You should use the `let` keyword to declare your `xp` variable.
|
||||
|
||||
```js
|
||||
assert.match(code, /let xp/);
|
||||
```
|
||||
|
||||
You should use the `let` keyword to declare your `health` variable.
|
||||
|
||||
```js
|
||||
assert.match(code, /let health/);
|
||||
```
|
||||
|
||||
You should use the `let` keyword to declare your `gold` variable.
|
||||
|
||||
```js
|
||||
assert.match(code, /let gold/);
|
||||
```
|
||||
|
||||
You should use the `let` keyword to declare your `currentWeapon` variable.
|
||||
|
||||
```js
|
||||
assert.match(code, /let currentWeapon/);
|
||||
```
|
||||
|
||||
You should not change the values of your variables.
|
||||
|
||||
```js
|
||||
assert.equal(xp, 0);
|
||||
assert.equal(health, 100);
|
||||
assert.equal(gold, 50);
|
||||
assert.equal(currentWeapon, 0);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
## --seed-contents--
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="./styles.css">
|
||||
<title>RPG - Dragon Repeller</title>
|
||||
<script src="./script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="game">
|
||||
<div id="stats">
|
||||
<span class="stat">XP: <strong><span id="xpText">0</span></strong></span>
|
||||
<span class="stat">Health: <strong><span id="healthText">100</span></strong></span>
|
||||
<span class="stat">Gold: <strong><span id="goldText">50</span></strong></span>
|
||||
</div>
|
||||
<div id="controls">
|
||||
<button id="button1">Go to store</button>
|
||||
<button id="button2">Go to cave</button>
|
||||
<button id="button3">Fight dragon</button>
|
||||
</div>
|
||||
<div id="monsterStats">
|
||||
<span class="stat">Monster Name: <strong><span id="monsterName"></span></strong></span>
|
||||
<span class="stat">Health: <strong><span id="monsterHealth"></span></strong></span>
|
||||
</div>
|
||||
<div id="text">
|
||||
Welcome to Dragon Repeller. You must defeat the dragon that is preventing people from leaving the town. You are in the town square. Where do you want to go? Use the buttons above.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
```css
|
||||
body {
|
||||
background-color: #0a0a23;
|
||||
}
|
||||
|
||||
#text {
|
||||
background-color: #0a0a23;
|
||||
color: #ffffff;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#game {
|
||||
max-width: 500px;
|
||||
max-height: 400px;
|
||||
background-color: #ffffff;
|
||||
color: #ffffff;
|
||||
margin: 30px auto 0px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#controls,
|
||||
#stats {
|
||||
border: 1px solid #0a0a23;
|
||||
padding: 5px;
|
||||
color: #0a0a23;
|
||||
}
|
||||
|
||||
#monsterStats {
|
||||
display: none;
|
||||
border: 1px solid #0a0a23;
|
||||
padding: 5px;
|
||||
color: #ffffff;
|
||||
background-color: #c70d0d;
|
||||
}
|
||||
|
||||
.stat {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
color: #0a0a23;
|
||||
background-color: #feac32;
|
||||
background-image: linear-gradient(#fecc4c, #ffac33);
|
||||
border: 3px solid #feac32;
|
||||
}
|
||||
```
|
||||
|
||||
```js
|
||||
--fcc-editable-region--
|
||||
var xp = 0;
|
||||
var health = 100;
|
||||
var gold = 50;
|
||||
var currentWeapon = 0;
|
||||
--fcc-editable-region--
|
||||
```
|
||||
+3
-3
@@ -1,13 +1,13 @@
|
||||
---
|
||||
id: 62a3b3eab50e193608c19fc6
|
||||
title: Step 25
|
||||
title: Step 24
|
||||
challengeType: 0
|
||||
dashedName: step-25
|
||||
dashedName: step-24
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Using the `let` keyword, declare a variable called `fighting` but do not initialize it with a value. Remember to end your line with a semi-colon.
|
||||
Declare a variable called `fighting` but do not initialize it with a value. Remember to end your line with a semi-colon.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3b41c9494f937560640ab
|
||||
title: Step 26
|
||||
title: Step 25
|
||||
challengeType: 0
|
||||
dashedName: step-26
|
||||
dashedName: step-25
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3b49686792938718b90d3
|
||||
title: Step 27
|
||||
title: Step 26
|
||||
challengeType: 0
|
||||
dashedName: step-27
|
||||
dashedName: step-26
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3b506dbaead396f58a701
|
||||
title: Step 28
|
||||
title: Step 27
|
||||
challengeType: 0
|
||||
dashedName: step-28
|
||||
dashedName: step-27
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3b5843544ce3a77459c27
|
||||
title: Step 29
|
||||
title: Step 28
|
||||
challengeType: 0
|
||||
dashedName: step-29
|
||||
dashedName: step-28
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3b79d520a7f3d0e25afd6
|
||||
title: Step 30
|
||||
title: Step 29
|
||||
challengeType: 0
|
||||
dashedName: step-30
|
||||
dashedName: step-29
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3bb9aeefe4b3fc43c6d7b
|
||||
title: Step 32
|
||||
title: Step 31
|
||||
challengeType: 0
|
||||
dashedName: step-32
|
||||
dashedName: step-31
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3bec30ea7f941412512dc
|
||||
title: Step 34
|
||||
title: Step 33
|
||||
challengeType: 0
|
||||
dashedName: step-34
|
||||
dashedName: step-33
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3c0ab883fd9435cd5c518
|
||||
title: Step 40
|
||||
title: Step 39
|
||||
challengeType: 0
|
||||
dashedName: step-40
|
||||
dashedName: step-39
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3c2fccf186146b59c6e96
|
||||
title: Step 41
|
||||
title: Step 40
|
||||
challengeType: 0
|
||||
dashedName: step-41
|
||||
dashedName: step-40
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3c4a0e52767482c5202d4
|
||||
title: Step 42
|
||||
title: Step 41
|
||||
challengeType: 0
|
||||
dashedName: step-42
|
||||
dashedName: step-41
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3c668afc43b4a134cca81
|
||||
title: Step 36
|
||||
title: Step 35
|
||||
challengeType: 0
|
||||
dashedName: step-36
|
||||
dashedName: step-35
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3c8bf3980c14c438d2aed
|
||||
title: Step 37
|
||||
title: Step 36
|
||||
challengeType: 0
|
||||
dashedName: step-37
|
||||
dashedName: step-36
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3c91a2bab1b4d6fabb726
|
||||
title: Step 38
|
||||
title: Step 37
|
||||
challengeType: 0
|
||||
dashedName: step-38
|
||||
dashedName: step-37
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3cdb11478a34ff4a6470d
|
||||
title: Step 39
|
||||
title: Step 38
|
||||
challengeType: 0
|
||||
dashedName: step-39
|
||||
dashedName: step-38
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a3cfc8328d3351b95d4f61
|
||||
title: Step 43
|
||||
title: Step 42
|
||||
challengeType: 0
|
||||
dashedName: step-43
|
||||
dashedName: step-42
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a7beb1ad61211ac153707f
|
||||
title: Step 44
|
||||
title: Step 43
|
||||
challengeType: 0
|
||||
dashedName: step-44
|
||||
dashedName: step-43
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a7bf06d2ad9d1c5024e833
|
||||
title: Step 45
|
||||
title: Step 44
|
||||
challengeType: 0
|
||||
dashedName: step-45
|
||||
dashedName: step-44
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a7bfabe119461eb13ccbd6
|
||||
title: Step 46
|
||||
title: Step 45
|
||||
challengeType: 0
|
||||
dashedName: step-46
|
||||
dashedName: step-45
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a7bfd9179b7f1f6a15fb1e
|
||||
title: Step 47
|
||||
title: Step 46
|
||||
challengeType: 0
|
||||
dashedName: step-47
|
||||
dashedName: step-46
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a7c011eef9fb2084b966db
|
||||
title: Step 48
|
||||
title: Step 47
|
||||
challengeType: 0
|
||||
dashedName: step-48
|
||||
dashedName: step-47
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a7c071219da921758a35bb
|
||||
title: Step 49
|
||||
title: Step 48
|
||||
challengeType: 0
|
||||
dashedName: step-49
|
||||
dashedName: step-48
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a7c23e6b511f22ed71197a
|
||||
title: Step 50
|
||||
title: Step 49
|
||||
challengeType: 0
|
||||
dashedName: step-50
|
||||
dashedName: step-49
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a7cc99577fbf25ee7a7d76
|
||||
title: Step 51
|
||||
title: Step 50
|
||||
challengeType: 0
|
||||
dashedName: step-51
|
||||
dashedName: step-50
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8a929e4260d08093756d2
|
||||
title: Step 52
|
||||
title: Step 51
|
||||
challengeType: 0
|
||||
dashedName: step-52
|
||||
dashedName: step-51
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8a9d876b2580943ba9351
|
||||
title: Step 53
|
||||
title: Step 52
|
||||
challengeType: 0
|
||||
dashedName: step-53
|
||||
dashedName: step-52
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8aa98a8289d0a698eee1d
|
||||
title: Step 54
|
||||
title: Step 53
|
||||
challengeType: 0
|
||||
dashedName: step-54
|
||||
dashedName: step-53
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8ab0e27cbaf0b54ba8a42
|
||||
title: Step 55
|
||||
title: Step 54
|
||||
challengeType: 0
|
||||
dashedName: step-55
|
||||
dashedName: step-54
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8ac194679e60cb561b0a8
|
||||
title: Step 56
|
||||
title: Step 55
|
||||
challengeType: 0
|
||||
dashedName: step-56
|
||||
dashedName: step-55
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8ad8e01d7cb0deae5ec66
|
||||
title: Step 57
|
||||
title: Step 56
|
||||
challengeType: 0
|
||||
dashedName: step-57
|
||||
dashedName: step-56
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8ade9b2f5b30ef0b606c2
|
||||
title: Step 58
|
||||
title: Step 57
|
||||
challengeType: 0
|
||||
dashedName: step-58
|
||||
dashedName: step-57
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8ae85fcaedc0fddc7ca4f
|
||||
title: Step 59
|
||||
title: Step 58
|
||||
challengeType: 0
|
||||
dashedName: step-59
|
||||
dashedName: step-58
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8b0b5053f16111b0b6b5f
|
||||
title: Step 60
|
||||
title: Step 59
|
||||
challengeType: 0
|
||||
dashedName: step-60
|
||||
dashedName: step-59
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8b1762b7775124622e1a3
|
||||
title: Step 61
|
||||
title: Step 60
|
||||
challengeType: 0
|
||||
dashedName: step-61
|
||||
dashedName: step-60
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8b3cc436db8139cc5fc09
|
||||
title: Step 62
|
||||
title: Step 61
|
||||
challengeType: 0
|
||||
dashedName: step-62
|
||||
dashedName: step-61
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8b6536156c51500739b41
|
||||
title: Step 63
|
||||
title: Step 62
|
||||
challengeType: 0
|
||||
dashedName: step-63
|
||||
dashedName: step-62
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8b711ab7a12161c7d9b67
|
||||
title: Step 64
|
||||
title: Step 63
|
||||
challengeType: 0
|
||||
dashedName: step-64
|
||||
dashedName: step-63
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8b9770050d217d2247801
|
||||
title: Step 65
|
||||
title: Step 64
|
||||
challengeType: 0
|
||||
dashedName: step-65
|
||||
dashedName: step-64
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c0c8313e891a15ec23e7
|
||||
title: Step 66
|
||||
title: Step 65
|
||||
challengeType: 0
|
||||
dashedName: step-66
|
||||
dashedName: step-65
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c1154d3ae11aee80353f
|
||||
title: Step 67
|
||||
title: Step 66
|
||||
challengeType: 0
|
||||
dashedName: step-67
|
||||
dashedName: step-66
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c151b23bf21bc7c4fcba
|
||||
title: Step 68
|
||||
title: Step 67
|
||||
challengeType: 0
|
||||
dashedName: step-68
|
||||
dashedName: step-67
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c173949f851c83c64756
|
||||
title: Step 69
|
||||
title: Step 68
|
||||
challengeType: 0
|
||||
dashedName: step-69
|
||||
dashedName: step-68
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c242b25a531f2909e5bc
|
||||
title: Step 70
|
||||
title: Step 69
|
||||
challengeType: 0
|
||||
dashedName: step-70
|
||||
dashedName: step-69
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c2bbbd8aa82052f47c53
|
||||
title: Step 71
|
||||
title: Step 70
|
||||
challengeType: 0
|
||||
dashedName: step-71
|
||||
dashedName: step-70
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c31ec0ec78216a1c36a0
|
||||
title: Step 72
|
||||
title: Step 71
|
||||
challengeType: 0
|
||||
dashedName: step-72
|
||||
dashedName: step-71
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c370ad8c68227137e0bc
|
||||
title: Step 73
|
||||
title: Step 72
|
||||
challengeType: 0
|
||||
dashedName: step-73
|
||||
dashedName: step-72
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c3ebc6c35e23785e1a19
|
||||
title: Step 74
|
||||
title: Step 73
|
||||
challengeType: 0
|
||||
dashedName: step-74
|
||||
dashedName: step-73
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c41ecaf1bd24536129b8
|
||||
title: Step 75
|
||||
title: Step 74
|
||||
challengeType: 0
|
||||
dashedName: step-75
|
||||
dashedName: step-74
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c465fa7b0c252f4a8f0c
|
||||
title: Step 76
|
||||
title: Step 75
|
||||
challengeType: 0
|
||||
dashedName: step-76
|
||||
dashedName: step-75
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c4db0710f3260f867a92
|
||||
title: Step 77
|
||||
title: Step 76
|
||||
challengeType: 0
|
||||
dashedName: step-77
|
||||
dashedName: step-76
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c56247609626fa4a8d6e
|
||||
title: Step 78
|
||||
title: Step 77
|
||||
challengeType: 0
|
||||
dashedName: step-78
|
||||
dashedName: step-77
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c5db7888af27af23f0dd
|
||||
title: Step 79
|
||||
title: Step 78
|
||||
challengeType: 0
|
||||
dashedName: step-79
|
||||
dashedName: step-78
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c65b75664c28a8e59c16
|
||||
title: Step 80
|
||||
title: Step 79
|
||||
challengeType: 0
|
||||
dashedName: step-80
|
||||
dashedName: step-79
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c6815f5f1a29735efe1b
|
||||
title: Step 81
|
||||
title: Step 80
|
||||
challengeType: 0
|
||||
dashedName: step-81
|
||||
dashedName: step-80
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c7322e42962ad53ad204
|
||||
title: Step 82
|
||||
title: Step 81
|
||||
challengeType: 0
|
||||
dashedName: step-82
|
||||
dashedName: step-81
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c7a59e72c02bb1c717d2
|
||||
title: Step 83
|
||||
title: Step 82
|
||||
challengeType: 0
|
||||
dashedName: step-83
|
||||
dashedName: step-82
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c89e4272512d44fc1c66
|
||||
title: Step 84
|
||||
title: Step 83
|
||||
challengeType: 0
|
||||
dashedName: step-84
|
||||
dashedName: step-83
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8c8cee8e5cf2e001789b4
|
||||
title: Step 85
|
||||
title: Step 84
|
||||
challengeType: 0
|
||||
dashedName: step-85
|
||||
dashedName: step-84
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8ca22d29fe62f3952bdf5
|
||||
title: Step 86
|
||||
title: Step 85
|
||||
challengeType: 0
|
||||
dashedName: step-86
|
||||
dashedName: step-85
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8cb19bd7f8a304e5427a1
|
||||
title: Step 87
|
||||
title: Step 86
|
||||
challengeType: 0
|
||||
dashedName: step-87
|
||||
dashedName: step-86
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8cbd1e3595431d5a2b3f1
|
||||
title: Step 88
|
||||
title: Step 87
|
||||
challengeType: 0
|
||||
dashedName: step-88
|
||||
dashedName: step-87
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8cce1b0c32c33017cf2e9
|
||||
title: Step 89
|
||||
title: Step 88
|
||||
challengeType: 0
|
||||
dashedName: step-89
|
||||
dashedName: step-88
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8ce1dfc990134162b3bd9
|
||||
title: Step 90
|
||||
title: Step 89
|
||||
challengeType: 0
|
||||
dashedName: step-90
|
||||
dashedName: step-89
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8ce73d0dce43468f6689c
|
||||
title: Step 91
|
||||
title: Step 90
|
||||
challengeType: 0
|
||||
dashedName: step-91
|
||||
dashedName: step-90
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8cf22272d6d35af80d4ac
|
||||
title: Step 92
|
||||
title: Step 91
|
||||
challengeType: 0
|
||||
dashedName: step-92
|
||||
dashedName: step-91
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d0337d7c67377a4a76c6
|
||||
title: Step 93
|
||||
title: Step 92
|
||||
challengeType: 0
|
||||
dashedName: step-93
|
||||
dashedName: step-92
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d08668fa8b38732486e9
|
||||
title: Step 94
|
||||
title: Step 93
|
||||
challengeType: 0
|
||||
dashedName: step-94
|
||||
dashedName: step-93
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d0c4f12c2239b6618582
|
||||
title: Step 95
|
||||
title: Step 94
|
||||
challengeType: 0
|
||||
dashedName: step-95
|
||||
dashedName: step-94
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d0fdf2dad83a92883a80
|
||||
title: Step 96
|
||||
title: Step 95
|
||||
challengeType: 0
|
||||
dashedName: step-96
|
||||
dashedName: step-95
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d143f2a58e3b6d6e9c33
|
||||
title: Step 97
|
||||
title: Step 96
|
||||
challengeType: 0
|
||||
dashedName: step-97
|
||||
dashedName: step-96
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d1c72e8bb13c2074d93c
|
||||
title: Step 98
|
||||
title: Step 97
|
||||
challengeType: 0
|
||||
dashedName: step-98
|
||||
dashedName: step-97
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d2146a3e853d0a6e28ca
|
||||
title: Step 99
|
||||
title: Step 98
|
||||
challengeType: 0
|
||||
dashedName: step-99
|
||||
dashedName: step-98
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d24c97461b3ddb9397c8
|
||||
title: Step 100
|
||||
title: Step 99
|
||||
challengeType: 0
|
||||
dashedName: step-100
|
||||
dashedName: step-99
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d2e2a073be3edb46116f
|
||||
title: Step 101
|
||||
title: Step 100
|
||||
challengeType: 0
|
||||
dashedName: step-101
|
||||
dashedName: step-100
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d31ebbc10e3fe1b28e03
|
||||
title: Step 102
|
||||
title: Step 101
|
||||
challengeType: 0
|
||||
dashedName: step-102
|
||||
dashedName: step-101
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d35660db4040ba292193
|
||||
title: Step 103
|
||||
title: Step 102
|
||||
challengeType: 0
|
||||
dashedName: step-103
|
||||
dashedName: step-102
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+17
-4
@@ -1,15 +1,28 @@
|
||||
---
|
||||
id: 62a8d382cd075f4169223e14
|
||||
title: Step 104
|
||||
title: Step 103
|
||||
challengeType: 0
|
||||
dashedName: step-104
|
||||
dashedName: step-103
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Use the `let` keyword to create a variable named `currentWeapon`. Don't assign it a value yet.
|
||||
The next step is to create a variable called `currentWeapon`.
|
||||
|
||||
Notice that you already have a `currentWeapon` variable elsewhere in your code. Since you are using the `let` keyword instead of `var`, the new `currentWeapon` is scoped only to this `if` statement. At the close of the `if` statement, the old `currentWeapon` will be used again.
|
||||
Notice that you already have a `currentWeapon` variable elsewhere in your code. Since this new `currentWeapon` variable will be inside an `if` statement, it will be scoped only to that block of code.
|
||||
|
||||
Scope is the term used to describe where a variable can be accessed. If a variable is declared inside a block of code, it is only accessible to the code inside that block. This is called block scope.
|
||||
|
||||
```js
|
||||
let num = 1;
|
||||
if (num === 1) {
|
||||
let num = 2; // this num is scoped to the if statement
|
||||
console.log(num); // expected output: 2
|
||||
}
|
||||
console.log(num); // expected output: 1 (the global variable)
|
||||
```
|
||||
|
||||
Use the `let` keyword to create a variable named `currentWeapon`. Don't assign it a value yet.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d539dc11cb42b5dd7ec8
|
||||
title: Step 105
|
||||
title: Step 104
|
||||
challengeType: 0
|
||||
dashedName: step-105
|
||||
dashedName: step-104
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d61ddfe35744369365b7
|
||||
title: Step 106
|
||||
title: Step 105
|
||||
challengeType: 0
|
||||
dashedName: step-106
|
||||
dashedName: step-105
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d6c7001ebc45350e3d16
|
||||
title: Step 107
|
||||
title: Step 106
|
||||
challengeType: 0
|
||||
dashedName: step-107
|
||||
dashedName: step-106
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d7b8ab568b4649998954
|
||||
title: Step 108
|
||||
title: Step 107
|
||||
challengeType: 0
|
||||
dashedName: step-108
|
||||
dashedName: step-107
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8d81f539f004776dd9b1e
|
||||
title: Step 109
|
||||
title: Step 108
|
||||
challengeType: 0
|
||||
dashedName: step-109
|
||||
dashedName: step-108
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8dd468debb449b4454086
|
||||
title: Step 110
|
||||
title: Step 109
|
||||
challengeType: 0
|
||||
dashedName: step-110
|
||||
dashedName: step-109
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8dd9cdb16324b04cfd958
|
||||
title: Step 111
|
||||
title: Step 110
|
||||
challengeType: 0
|
||||
dashedName: step-111
|
||||
dashedName: step-110
|
||||
---
|
||||
|
||||
# --description--
|
||||
@@ -22,7 +22,7 @@ assert.match(fightSlime.toString(), /fighting\s*=\s*0;/);
|
||||
You should not use `let` or `const`.
|
||||
|
||||
```js
|
||||
assert.notMatch(fightSlime.toString(), /let|const|var/);
|
||||
assert.notMatch(fightSlime.toString(), /let|const/);
|
||||
```
|
||||
|
||||
You should call the `goFight` function.
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8dfcf7fb1044d2f478fd1
|
||||
title: Step 112
|
||||
title: Step 111
|
||||
challengeType: 0
|
||||
dashedName: step-112
|
||||
dashedName: step-111
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8e0d1d0110b4ec421489f
|
||||
title: Step 113
|
||||
title: Step 112
|
||||
challengeType: 0
|
||||
dashedName: step-113
|
||||
dashedName: step-112
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8e142f7f0bd4fed898de3
|
||||
title: Step 114
|
||||
title: Step 113
|
||||
challengeType: 0
|
||||
dashedName: step-114
|
||||
dashedName: step-113
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8e1dc897df55108bcb5e8
|
||||
title: Step 115
|
||||
title: Step 114
|
||||
challengeType: 0
|
||||
dashedName: step-115
|
||||
dashedName: step-114
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8e21398ad61520edb724f
|
||||
title: Step 116
|
||||
title: Step 115
|
||||
challengeType: 0
|
||||
dashedName: step-116
|
||||
dashedName: step-115
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8e24c673b075317cc0b09
|
||||
title: Step 117
|
||||
title: Step 116
|
||||
challengeType: 0
|
||||
dashedName: step-117
|
||||
dashedName: step-116
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8e271f8e3d1541f9624ad
|
||||
title: Step 118
|
||||
title: Step 117
|
||||
challengeType: 0
|
||||
dashedName: step-118
|
||||
dashedName: step-117
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8e35675c18c56354c08cf
|
||||
title: Step 119
|
||||
title: Step 118
|
||||
challengeType: 0
|
||||
dashedName: step-119
|
||||
dashedName: step-118
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8e41e2f190c58404dd46e
|
||||
title: Step 120
|
||||
title: Step 119
|
||||
challengeType: 0
|
||||
dashedName: step-120
|
||||
dashedName: step-119
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 62a8e45cc600c3591cee671a
|
||||
title: Step 121
|
||||
title: Step 120
|
||||
challengeType: 0
|
||||
dashedName: step-121
|
||||
dashedName: step-120
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user