From cfb5fad0988d145894a6cbe4f4ff0ba01289b249 Mon Sep 17 00:00:00 2001 From: freeCodeCamp's Camper Bot Date: Wed, 26 Jun 2024 14:47:06 -0500 Subject: [PATCH] chore(i18n,learn): processed translations (#55335) Co-authored-by: Ilenia M --- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../build-a-technical-documentation-page.md | 2 +- .../build-a-tribute-page.md | 2 +- .../6145fb5018cb5b100cb2a88c.md | 2 +- .../5f3cade9fa77275d9f4efe62.md | 2 +- .../5f45a276c093334f0f6e9df4.md | 4 ++-- .../5f45b715301bbf667badc04a.md | 2 +- .../5f7b87422a560036fd03ccff.md | 2 +- .../5dfa2407b521be39a3de7be1.md | 6 +++--- .../5dfb5ecbeacea3f48c6300b1.md | 12 ++++++------ .../5dfb6250eacea3f48c6300b2.md | 6 +++--- .../5ef9b03c81a63668521804d9.md | 4 ++-- .../5ef9b03c81a63668521804dc.md | 2 +- .../5ef9b03c81a63668521804de.md | 2 +- .../5ef9b03c81a63668521804df.md | 2 +- .../60fab4a123ce4b04526b082b.md | 2 +- .../60a3e3396c7b40068ad6997d.md | 2 +- .../615f887466db4ba14b5342cc.md | 6 +++--- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- .../657e0d0037192f3d9e3d5417.md | 2 +- .../simulate-actions-using-a-headless-browser.md | 2 +- .../657e928716b77b2277980276.md | 4 ++-- .../657f425dbab54e11993c80f0.md | 4 ++-- .../657f456223b8c1187b461987.md | 2 +- .../65f0694fb2296f3caadf8347.md | 6 +++--- .../65f3fe07cc763212efe91285.md | 10 +++++----- .../65fa8d5cf0ef3b141010f5d8.md | 4 ++-- .../65fa8df56a0e2c149b4d24fe.md | 4 ++-- .../65fd9aa649f6cc84631882a9.md | 2 +- .../6659875502b6d7765498f324.md | 8 ++++---- .../65ef1d5e3d2927c5e0f4997b.md | 4 ++-- .../65c4f22498d22ed775ef8efb.md | 2 +- .../663250b42513ef5975599c49.md | 2 +- .../63db7f4677d06d7500a13321.md | 2 +- .../63e9eb5b2328eed3d194b28a.md | 6 +++--- .../64475c0b61cddb6feaab4e2e.md | 4 ++-- .../644a0eadcbccaf1d13c7d137.md | 2 +- .../644a2013b2ceea32c44d09f9.md | 2 +- .../645b6693d8e1bf60f2d92e67.md | 4 ++-- .../645b6c92876e836832538e34.md | 6 +++--- .../645b9d56b48971997a8055dd.md | 4 ++-- .../645c86f92a102d82250ce3e8.md | 2 +- .../645cb1306eb27a397be7f18c.md | 4 ++-- .../645cc5925f158b5b33e2698f.md | 4 ++-- .../645ccf7ec9aca267d84b053e.md | 4 ++-- .../645cd17b061afb6a8cba945a.md | 4 ++-- .../645cd267410ac06bfcaf0bd4.md | 4 ++-- .../645cd2b76488fd6cb8d1ae79.md | 4 ++-- .../645cd4eb6edf6e6f91acabbb.md | 4 ++-- .../646467683f25e19bfc9cf9b0.md | 8 ++++---- .../64646bc0e5a60ea131e03f91.md | 6 +++--- .../64646db2c684b7a3a174a1d0.md | 4 ++-- .../646477c82475ffaf0c3c0771.md | 2 +- .../64648cf52e1ce1c8c00956ae.md | 6 +++--- .../64649d2459ad94e0a772fc3f.md | 4 ++-- .../64649efb555939e30462c79b.md | 4 ++-- .../6464a6d98c43acecb8a7867b.md | 4 ++-- .../6464aabd17cd45f1d17cfe56.md | 4 ++-- .../6464ab8c06ea92f30bc548d5.md | 4 ++-- ...olve-problems-and-understand-errors-question-a.md | 6 +++--- .../problem-194-coloured-configurations.md | 2 +- .../problem-311-biclinic-integral-quadrilaterals.md | 2 +- .../657e0d0037192f3d9e3d5417.md | 2 +- 340 files changed, 666 insertions(+), 666 deletions(-) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index 3d79a21547e..56e2dedff74 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index 518007969de..db8bee9b30e 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index 98c3b8f8c60..4de3d24d104 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index a26fe202b9b..97a481c8573 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index b65b9ba46c0..dc0b80fc723 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 8962f7ff96d..27adbdf8397 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index 0eb757ced6f..649cdf8eedc 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index 88021aa734c..ad384ea4653 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index 1efcfbc1eb7..9bc98468464 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index aa4e7aad4fb..bc127f123ee 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index 872b5d7099e..a48893ff876 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index e8c422a2185..f54e52e3885 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index e2b541bd761..ea8e590d852 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index 66511f02125..f507080e182 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index 08c07b681db..73398da2a84 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index c97ca5fc2e1..19cd203b1bf 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index e338139f56d..fac6fdb89a0 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index 61aa01f84f2..f737f0acee2 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index 3dc8fc0087b..37d3520c8f2 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index 80f7cdf0bd8..5028e637201 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index 56503f9a931..178f7aa19d2 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 1a205a34262..29c11eab264 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index 31de3d0ef2b..c95f6625282 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index 835d67a22a0..79de58c18d6 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index bd79dd132b0..ea27e8e4789 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index 80cc9a8eeda..c1f1ba5325c 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/arabic/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/arabic/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index fa5b427fdc5..857d52d4c51 100644 --- a/curriculum/challenges/arabic/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/arabic/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Task 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index eb5e12769f4..8a6d4807518 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index 6e867b58f8e..aaf3cf34cb9 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index fe5991bb36f..6f894236843 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index c533a37b155..c0afaa73d2e 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index da67a56705e..f9dd32eeed2 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 0730c23da5f..13029af69cf 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index 0a0f7d7988a..f32319d7040 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index 4c0bee4922d..c1a617543f9 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index b8ce0222ec1..97e4c327fbc 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index 32599d25bc8..7e740225649 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index b8ed8335dbe..9bd9b5cc8d1 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index 61d3b48825f..0837decb92a 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index adf05436e58..0d117115fbd 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index 6207c11a037..7e015741064 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index fac538d124e..dabb92fc309 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index 2ac08ad2f80..7af7bc3ed67 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index 98540301368..1cfa8115866 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index 64e8d46f274..d192c4f85d3 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index d22121fa789..11b941ab4aa 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index 22c8b972e6f..fbf80320575 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index 5065f72bb56..85d46b7b24a 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 17c997a1905..c78a90265b4 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index 563bb6a96ea..0150588f307 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index bcbcfd7c019..109d584bf9a 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index 7a8cf3cc8e4..dfa9f62be92 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index 44d9f342c13..96bcdf99c74 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index fa5b427fdc5..857d52d4c51 100644 --- a/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Task 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index 2f573007321..9d7ca3ff2eb 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index 6244eb4f202..6163e400b5e 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index ccd01dfadb8..3ba321c1daf 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index 67cdc6e9dfb..a26d4ed67ed 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index b1d46ef0153..4d543d04d08 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 4186e536221..179f0c42a66 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index f6d531bdfe4..6abcd87783d 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index 9ee4e7b8c49..f764599e3a0 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index b8ce0222ec1..97e4c327fbc 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index 874dfc5e4ff..a264593a175 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index fea00bd81e1..d2b3a4daf59 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index 71a2ccde21a..0edff2554aa 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index 7446fde8308..95e82253e4a 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index b17efa54232..2cf3997251b 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index fac538d124e..dabb92fc309 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index 44e256e4b40..445d10126f2 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index 382ed3a6bcb..98d648ebdcf 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index 2f569b07e5a..5e6dc695922 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index d22121fa789..11b941ab4aa 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index ae8556e8830..c29a793fda3 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index 23c2de8c78d..a8836424406 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 41113941218..ba55983fb41 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index 6ad4f4d743a..49736c07253 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index 14c37b73ffe..07912c5b398 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index a22fe67b497..c4d13a901fb 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index 075331e0210..eea249b0d8e 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/chinese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/chinese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index fa5b427fdc5..857d52d4c51 100644 --- a/curriculum/challenges/chinese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/chinese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Task 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index b514d175f72..9f7e4cb20d9 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index d2c9a49b9ea..8248c62cc30 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index 8bdc87a3c1d..ed459f39197 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index 591a195ca0a..f5869c23696 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index 0e317c65ce1..86caacab9e8 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 9531b3ec18b..e9270fbd27c 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index c8c82b734a1..3ed2a2b9b76 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index cd7011bc2d8..5fa091972f7 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index 8daa15cd3a0..122d802a843 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index 88ea654f714..7738a6d277e 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index 6f5b099e372..385a8673403 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index 776cd4b8108..2450a7f5448 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index e9789f4066f..f70e692a2fe 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index eec5c763b13..28b9ffc2372 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index b634abeafa1..6362bb4d3ac 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index 10707337bc0..79822629245 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index 3a99396de33..bd765022319 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index 8214e6e23a2..44f2b6eff91 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index fed377ba233..04bc87d642d 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index 7a651cc91cd..cb836f1fbc7 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index d979190981d..82b80b62714 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 5b9d42461e1..bc75c4fb500 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index c17a5aa610b..8519ba7e581 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index a62fb78adaa..bc831ec90ba 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index bb42b82601e..752365329ce 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index bc57a5de394..1a4625a1686 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index 0f6ad5eeeee..f4ee0c9f7ce 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Task 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/german/14-responsive-web-design-22/build-a-technical-documentation-page-project/build-a-technical-documentation-page.md b/curriculum/challenges/german/14-responsive-web-design-22/build-a-technical-documentation-page-project/build-a-technical-documentation-page.md index 44a30677464..63de5163a3b 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/build-a-technical-documentation-page-project/build-a-technical-documentation-page.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/build-a-technical-documentation-page-project/build-a-technical-documentation-page.md @@ -8,7 +8,7 @@ dashedName: build-a-technical-documentation-page # --description-- -**Objective:** Build an app that is functionally similar to https://technical-documentation-page.freecodecamp.rocks. **Do not copy this demo project**. +**Aufgabe:** Erstelle eine Applikation, die eine ähnliche Funktionalität wie https://technical-documentation-page.freecodecamp.rocks aufweist. **Bitte kopiere nicht dieses Demo-Projekt **. **User Stories:** diff --git a/curriculum/challenges/german/14-responsive-web-design-22/build-a-tribute-page-project/build-a-tribute-page.md b/curriculum/challenges/german/14-responsive-web-design-22/build-a-tribute-page-project/build-a-tribute-page.md index 86749b50a2a..325928990a7 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/build-a-tribute-page-project/build-a-tribute-page.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/build-a-tribute-page-project/build-a-tribute-page.md @@ -8,7 +8,7 @@ dashedName: build-a-tribute-page # --description-- -**Objective:** Build an app that is functionally similar to https://tribute-page.freecodecamp.rocks. **Do not copy this demo project**. +**Aufgabe:** Erstelle eine Applikation, die eine ähnliche Funktionalität wie https://tribute-page.freecodecamp.rocks aufweist. **Bitte kopiere nicht dieses Demo-Projekt **. **User Stories:** diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145fb5018cb5b100cb2a88c.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145fb5018cb5b100cb2a88c.md index 0a6c7716e81..d7f0e30d59d 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145fb5018cb5b100cb2a88c.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145fb5018cb5b100cb2a88c.md @@ -19,7 +19,7 @@ Du solltest ein `a`-Element erstellen. assert.exists(document.querySelector('address > a')); ``` -You should give the `a` element an `href` attribute of `https://freecodecamp.org`. +Du solltest dem `a`-Element ein `href`-Attribut mit dem Wert `https://freecodecamp.org` zuweisen. ```js assert.equal(document.querySelector('address > a')?.getAttribute('href'), 'https://freecodecamp.org'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3cade9fa77275d9f4efe62.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3cade9fa77275d9f4efe62.md index d4c76be0655..526fed85a66 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3cade9fa77275d9f4efe62.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3cade9fa77275d9f4efe62.md @@ -9,7 +9,7 @@ dashedName: step-40 Das hat funktioniert, aber rechts vom Preis ist immer noch ein wenig Platz. -Du kannst immer wieder verschiedene Prozentsätze für die Breite ausprobieren. Verwende stattdessen die Zurücktaste auf deiner Tastatur, um das `p`-Element mit der Klasse `price` neben das `p`-Element mit der Klasse `flavor` zu verschieben, so dass sie im Editor in der gleichen Zeile stehen. Make sure there is no space between the two elements. +Du kannst immer wieder verschiedene Prozentsätze für die Breite ausprobieren. Verwende stattdessen die Zurücktaste auf deiner Tastatur, um das `p`-Element mit der Klasse `price` neben das `p`-Element mit der Klasse `flavor` zu verschieben, so dass sie im Editor in der gleichen Zeile stehen. Stelle sicher, dass zwischen den zwei Elementen kein ein Leerzeichen vorhanden ist. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45a276c093334f0f6e9df4.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45a276c093334f0f6e9df4.md index 6f43597b8ec..4a83d1a151c 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45a276c093334f0f6e9df4.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45a276c093334f0f6e9df4.md @@ -48,14 +48,14 @@ const itemPMarginBottom = new __helpers.CSSHelp(document).getStyle('.item p')?.g assert(itemPMarginBottom === '5px'); ``` -Your `p` elements nested in your `.item` elements should not have a `margin-left` set. +Deine `p`-Elemente, die in deinen `.item`-Elementen eingebettet sind, sollten nicht auf `margin-left` gesetzt sein. ```js const itemPMarginLeft = new __helpers.CSSHelp(document).getStyle('.item p')?.getPropertyValue('margin-left'); assert(!itemPMarginLeft); ``` -Your `p` elements nested in your `.item` elements should not have a `margin-right` set. +Deine `p`-Elemente, die in deinen `.item`-Elementen eingebettet sind, sollten nicht auf `margin-right` gesetzt sein. ```js const itemPMarginRight = new __helpers.CSSHelp(document).getStyle('.item p')?.getPropertyValue('margin-right'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45b715301bbf667badc04a.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45b715301bbf667badc04a.md index f280bef9a5e..9fedf00e3c7 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45b715301bbf667badc04a.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45b715301bbf667badc04a.md @@ -7,7 +7,7 @@ dashedName: step-84 # --description-- -The menu text `CAMPER CAFE` has a different space from the top than the address's space at the bottom of the menu. Das liegt daran, dass der Browser eine Standard-Top-Margin für das `h1`-Element besitzt. +Der Text des Menüs `CAMPER CAFE` hat einen anderen Abstand von oben als der Abstand der Adresse unten im Menü. Das liegt daran, dass der Browser eine Standard-Top-Margin für das `h1`-Element besitzt. Ändere den oberen Rand des `h1`-Elements auf `0`, um alle oberen Ränder zu entfernen. diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f7b87422a560036fd03ccff.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f7b87422a560036fd03ccff.md index ee6c3aa538a..d29c2fef466 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f7b87422a560036fd03ccff.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f7b87422a560036fd03ccff.md @@ -7,7 +7,7 @@ dashedName: step-50 # --description-- -For the two `p` elements you just added, add `dessert` as the value of the first `p` element's `class` attribute and the value `price` as the second `p` element's `class` attribute. +Für die beiden `p` Elemente, die du gerade hinzugefügt hast, füge `dessert` als Wert des Klassenattributs des ersten `p` Elements und `price` als Wert des Klassenattributs des zweiten `p` Elements hinzu. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa2407b521be39a3de7be1.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa2407b521be39a3de7be1.md index 1f80a8d963c..51c5d0c663e 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa2407b521be39a3de7be1.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa2407b521be39a3de7be1.md @@ -7,11 +7,11 @@ dashedName: step-14 # --description-- -To open links in a new tab, you can use the `target` attribute on the anchor (`a`) element. +Um Links in einem neuen Tab zu öffnen, können Sie das `target` Attribut im Anker (`a`) Element verwenden. -The `target` attribute specifies where to open the linked document. `target="_blank"` opens the linked document in a new tab or window. +Das `target`-Attribut gibt an, wo das verknüpfte Dokument geöffnet werden soll. `target="_blank"` öffnet das verknüpfte Dokument in einem neuen Tab oder Window. -Here is the basic syntax for an `a` element with a `target` attribute: +Hier ist die Basis-Syntax für ein `a`-Element mit einem `target`-Attribut: ```html freeCodeCamp diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index 2910e23412d..36fb759ba3f 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -7,9 +7,9 @@ dashedName: step-21 # --description-- -The `li` element is used to create a list item in an ordered or unordered list. +Das `li`-Element wird verwendet, um ein Listenelement in einer geordneten oder ungeordneten Liste zu erstellen. -Here is an example of list items in an unordered list: +Hier ist ein Beispiel für Listen-Elemente in einer unsortierten Liste: ```html ``` -Within the `ul` element nest three list items to display three things cats love: +Bette innerhalb des `ul`-Elements drei Listen-Elemente ein, um drei Dinge anzuzeigen, die Katzen lieben: `cat nip` `laser pointers` `lasagna` # --hints-- -You should have three `li` elements. Each `li` element should have its own opening and closing tag. +Du solltest drei `li`-Elemente haben. Jedes `li`-Element sollte ein eigenes öffnendes und schließendes Tag besitzen. ```js assert($('li').length === 3 && code.match(/<\/li\>/g).length === 3); ``` -You should have three `li` elements with the text `cat nip`, `laser pointers` and `lasagna` in any order. You have either omitted some text or have a typo. +Du solltest drei `li`-Elemente mit dem Text `cat nip`, `laser pointers` und `lasagna` in beliebiger Reihenfolge haben. Du hast entweder etwas Text weggelassen oder einen Tippfehler gemacht. ```js assert.deepStrictEqual( @@ -41,7 +41,7 @@ assert.deepStrictEqual( ); ``` -The three `li` elements should be located between the `ul` element's opening and closing tags. +Die drei `li`-Elemente sollten sich zwischen dem öffnenden und schließenden Tag des `ul`-Elements befinden. ```js assert( diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index 255cb266b9f..c960b34045e 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -7,7 +7,7 @@ dashedName: step-22 # --description-- -After the unordered list, add a new image with a `src` attribute value set to: +Füge nach der unsortierten Liste ein neues Bild mit einem `src`-Attribut mit dem folgenden Wert hinzu: `https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg` @@ -40,13 +40,13 @@ assert( ); ``` -The new image does not have a `src` attribute. Überprüfe, ob nach dem Namen des öffnenden Tags ein Leerzeichen steht und/oder ob vor allen Attributnamen Leerzeichen stehen. +Das neue Bild hat kein `src`-Attribut. Überprüfe, ob nach dem Namen des öffnenden Tags ein Leerzeichen steht und/oder ob vor allen Attributnamen Leerzeichen stehen. ```js assert($('section')[1].lastElementChild.hasAttribute('src')); ``` -The new image should have a `src` value of `https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg`. Stelle sicher, dass der Wert des `src`-Attributs in Anführungzeichen gesetzt wird. +Das neue Bild sollte `https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg` als `src`-Wert enthalten. Stelle sicher, dass der Wert des `src`-Attributs in Anführungzeichen gesetzt wird. ```js assert( diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d9.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d9.md index ee32ef1471a..4ddbf8f348d 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d9.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d9.md @@ -7,9 +7,9 @@ dashedName: step-40 # --description-- -Placeholder text is used to give people a hint about what kind of information to enter into an input. +Platzhaltertext wird verwendet, um Personen einen Hinweis darauf zu geben, welche Art von Informationen sie in das Eingabefeld eintragen sollen. -Here is an example of an `input` element with a placeholder set to `Ex. Jane Doe`: +Hier ist ein Beispiel für ein `input`-Element mit einem Platzhalter auf `Ex. Jane Doe`: ```html diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804dc.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804dc.md index da2ac5fc127..603cb87cbb5 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804dc.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804dc.md @@ -9,7 +9,7 @@ dashedName: step-44 Du kannst Optionsschaltflächen für Fragen verwenden, bei denen du nur eine Antwort aus mehreren Optionen möchtest. -Here is an example of a radio button with the option of `cat`: +Hier ist ein Beispiel für ein Radio-Button mit der Option von `cat`: ```html cat diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804de.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804de.md index 5340b397aa3..89a9f53070a 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804de.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804de.md @@ -9,7 +9,7 @@ dashedName: step-48 Beachte, dass beide Radio-Buttons gleichzeitig ausgewählt werden können. Damit beim Auswählen einer Optionsschaltfläche automatisch die andere abgewählt wird, müssen beide Buttons ein `name`-Attribut mit dem gleichen Wert haben. -Here is an example of two radio buttons with the same `name` attribute: +Hier ist ein Beispiel für zwei Radio-Buttons mit dem gleichen `name`-Attribut: ```html Breakfast diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804df.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804df.md index e5b4f6f3861..a4eb89f7f14 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804df.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804df.md @@ -9,7 +9,7 @@ dashedName: step-46 Dein `id`-Attribut wird verwendet, um bestimmte HTML-Elemente zu identifizieren. Jeder Wert des `id`-Attributs muss sich für die gesamte Seite von allen anderen `id`-Werten unterscheiden. -Here is an example of an `input` element with an `id` attribute: +Hier ist ein Beispiel für ein `input`-Element mit einem `id`-Attribut: ```html diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md index 0baf8d4558e..a2cbdbcf44c 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md @@ -7,7 +7,7 @@ dashedName: step-28 # --description-- -Currently users can submit the form without checking the radio inputs. Although you previously used the `required` attribute to indicate that an input is required, it won't work in this case because adding `required` to both inputs will convey the wrong information to users. +Derzeit können die Benutzer das Formular abschicken, ohne die Radioeingaben zu überprüfen. Obwohl Du zuvor das `required` Attribut verwendet hast, um anzugeben, dass eine Eingabe erforderlich ist es funktioniert in diesem Fall nicht, da das Hinzufügen von `required` zu beiden Eingaben den Benutzern die falschen Informationen übermitteln wird. To solve this, you can provide context of what is needed by adding a `legend` element with text `Account type (required)` before the `label` elements within the second `fieldset`. Füge dann das `checked`-Attribut zur `Personal`-Eingabe hinzu, um sicherzustellen, dass das Formular mit den erforderlichen Daten übermittelt wird. diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6997d.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6997d.md index d09207f33ef..e0e80ce9628 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6997d.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6997d.md @@ -9,7 +9,7 @@ dashedName: step-20 Verwende Margins, um das `.one`-Element auf der Leinwand zu positionieren. -Add the shorthand `margin` property with a vertical margin of `20px` and a horizontal margin of `auto`. +Füge die Shorthand-Eigenschaft `margin` mit einem vertikalen Rand von `20px` und einem horizontalen Rand von `auto` hinzu. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md index 1a728ac1a6d..3468bd9ee55 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md @@ -7,7 +7,7 @@ dashedName: step-61 # --description-- -Erstelle nach deinem letzten Trenner ein weiteres `p`-Element mit dem Text `Protein 3g`. Verwende die notwendigen Klassen, um den unteren Rand zu entfernen, und nutze einen `span`, um `Protein` fettgedruckt zu machen. Then wrap the text `Protein 3g` including the new `span` element, in a new `span` element. +Erstelle nach deinem letzten Trenner ein weiteres `p`-Element mit dem Text `Protein 3g`. Verwende die notwendigen Klassen, um den unteren Rand zu entfernen, und nutze einen `span`, um `Protein` fettgedruckt zu machen. Verpacke den Text `Protein 3g` einschließlich des neuen `span`-Elements in ein neues `span`-Element. Erstelle nach diesem Element einen großen Trenner. @@ -32,13 +32,13 @@ Dein neues `p`-Element sollte das `class`-Attribut auf `no-divider` gesetzt habe assert(document.querySelector('.daily-value.small-text p:last-of-type')?.classList?.contains('no-divider')); ``` -You should have a `span` element with the class `bold` around the text `Protein`. +Du solltest ein `span`-Element mit der Klasse `bold` um den Text `Protein` herum haben. ```js assert(document.querySelector('.daily-value.small-text p:last-of-type span.bold')?.innerText === 'Protein'); ``` -You should have a `span` element around the text `Protein 3g`. +Du solltest ein `span`-Element um den Text `Protein 3g` haben. ```js assert(document.querySelector('.daily-value.small-text > p:last-of-type > span > span.bold')?.innerText === 'Protein'); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index 9f9c3f4fe24..496b25a6d99 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index b87ec955f19..3e791a556ac 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index 6c689759efb..74b6c2ebdea 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index 69b32aa6e41..59734ddd884 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index 681abfa0f3c..3c39f0b45b2 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index cade94d2ee0..771379d5a9f 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index b30927a3630..4ade310b901 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index 2ddd3fbb9b1..b994639bb93 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index ac848181ccf..a65e4633542 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index c74e1583731..2106ad3d695 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index 234d6ccf96d..8562d5722a4 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index 6469d0d5dda..72f1506aca2 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index 64fc2b61f51..e30eaee5343 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index b820406d66f..3c09f82a6f9 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index 1d55cdca3d8..43b39c5da26 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index 23907e1ae47..a6c1b08acb3 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index 552e78258a4..3bcf4d1b83e 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index 307fc0bc1a3..61ae116e294 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index 9d4d9d470b0..1938de010e6 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index 8136e09940c..4aa2b90af4b 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index c522445e5a5..94a17fede3e 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 326dcf838c8..d48e6d40b1c 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index 1a94a7eb050..c53220c5e62 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index 75920e14c03..59c6d389fe4 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index 24b6470afe5..11f5ef03938 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index 47ae9a91619..0cc90b81f32 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/german/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/german/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index a140dfe36ca..206dab189e2 100644 --- a/curriculum/challenges/german/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/german/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Aufgabe 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index 7007150b80d..c77a8f64bb5 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index 577630faf91..5b508268407 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index ca35d8cb859..840a66d27ab 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index e294cea800f..ff3e5543cb3 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index f38b8d75182..2cf4fd974bf 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 183f603db5c..bd6a4fdbec0 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index f0a96262d2c..ad3b938d8c3 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index 91549b48ed9..d09ef67f85c 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index bc95dc2427b..729e8d33b65 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index 2ba1a179f7f..c072c16b2eb 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index 39dcf1879e1..c6b5d08364d 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index 3c8116ea10e..e455ccced3d 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index 56ae5ea0366..e5d12cf7945 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index 1c025e2c514..62b1f0d77f3 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index 23261f374fd..9b97ca6971c 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index 5785d1c4ea3..f521f58865d 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index 11391bb63f2..9b7b7c27ac6 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index 816b7daf187..6d2e9ea9da4 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index 503146ba1d4..59d669f6e53 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index e9a90c25e3f..9f43c87cdd4 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index 8e690af9381..8522edff2d9 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 7d10da11ccd..ac1f1aedd73 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index b2d1d9bbc1f..12fe8a78482 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index 3e5ebfb3a98..4040b1331d6 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index dec0d8a0176..8f4f6634b45 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index 6b1082544ec..f0978367aa8 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/italian/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/italian/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index fa5b427fdc5..857d52d4c51 100644 --- a/curriculum/challenges/italian/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/italian/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Task 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index 294550fbba7..95c504b54ce 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index df76930d0ed..1819e46945d 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index 48e7808bf3e..d2da59349f4 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index a01ff0b558a..67158c289c8 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index c98f9ef83c0..b03faf71d6b 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 8fc4e184f7b..60f05bb411b 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index 9c8fc7e0a01..74bb799051c 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index 918d3f369a3..3c0c77149af 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index 907799bc072..99ad611b99f 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index 5d7e5fb07a7..c2afb613841 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index bb5199a15a5..94cdd50f340 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index 9c8c20efa2a..df8fb420c23 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index 0a924049f8b..436ef6f85fb 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index c32aaa71937..ba4e3b78c91 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index f4100e8ab9a..c5a8258cf51 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index eff701e66f4..3c1becfd7c2 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index b6203a4f10b..fdb8742bae2 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index d81c90cf649..464b2e2c087 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index 89c8ef4c642..c110e77d37c 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index de9bdd99fc4..9dd2753402c 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index 3153f274ce6..7a1dbf57b4a 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 5ec075a0fde..a3de98a6131 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index da5e1a637e8..9d2dd3be454 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index b9eb665351c..20b9397d313 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index 2e140b84bfa..c56b8f1be0c 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index 1ebd10019ce..699b1e0bd4e 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/japanese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/japanese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index fa5b427fdc5..857d52d4c51 100644 --- a/curriculum/challenges/japanese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/japanese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Task 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index 7007150b80d..c77a8f64bb5 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index 577630faf91..5b508268407 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index ca35d8cb859..840a66d27ab 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index dddaa95ed77..5e03c6994c3 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index f38b8d75182..2cf4fd974bf 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 3561f8615a4..59f6c4f9547 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index f0a96262d2c..ad3b938d8c3 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index 91549b48ed9..d09ef67f85c 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index bc95dc2427b..729e8d33b65 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index 2ba1a179f7f..c072c16b2eb 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index 39dcf1879e1..c6b5d08364d 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index 3c8116ea10e..e455ccced3d 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index 56ae5ea0366..e5d12cf7945 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index 1c025e2c514..62b1f0d77f3 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index 23261f374fd..9b97ca6971c 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index 5785d1c4ea3..f521f58865d 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index 11391bb63f2..9b7b7c27ac6 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index 816b7daf187..6d2e9ea9da4 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index 503146ba1d4..59d669f6e53 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index e9a90c25e3f..9f43c87cdd4 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index 8e690af9381..8522edff2d9 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 7d10da11ccd..ac1f1aedd73 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index b2d1d9bbc1f..12fe8a78482 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index 3e5ebfb3a98..4040b1331d6 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index dec0d8a0176..8f4f6634b45 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index 6b1082544ec..f0978367aa8 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/korean/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/korean/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index fa5b427fdc5..857d52d4c51 100644 --- a/curriculum/challenges/korean/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/korean/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Task 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index eb397fd3826..be57455bc19 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index d44bcf73bd2..a895d3c0aab 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index 8453bb67bc3..82baba08c6e 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index cc6c1b52ff3..1c76abac019 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index acc1689a842..f26ff02a06c 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 183f603db5c..bd6a4fdbec0 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index d064775b78c..8c30914e8ad 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index 9eacf5f9068..f960209e8b7 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index 71cd43a0092..11eee50e8be 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index e26a7608549..34f88378706 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index 6f149af1f22..300e5974c7c 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index 5399b434a06..b3debad7d0c 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index 8d06028cb6b..ed228955c57 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index 9884e1fc28f..6579ec0911b 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index a86393259b8..5225a297730 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index 8bed71c60e7..ac5de3c4edd 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index 3965ba9e7a3..3e1887446b5 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index aef8d03eb28..358cf42ac3c 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index 59138bc78dd..245b094e1a4 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index fcb39dffe2a..fd2db6dbf26 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index 0be644ec4c8..51773265fa2 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 625fda5f50b..7bc31f90f39 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index 2e392a02c60..69cfab0bf75 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index d582624872f..8c0fce099d5 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index 6f722db5017..e608960b0b5 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index 268acad7f51..9546aed151e 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/portuguese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/portuguese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index cad5012d3a6..bdc5248146f 100644 --- a/curriculum/challenges/portuguese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/portuguese/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Tarefa 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index cdcce57cb64..09cbacc1724 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index b4d1ec33a29..7fa227e54ae 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index 48fee2690e6..d24505c5756 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index 005bf8eda0a..d00c42a7c27 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index 1ff92deadec..8814633e649 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 51a53d55a25..3c4d28bdb42 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index f7ce1e6301e..5cebc8dab4b 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index cb407b7b794..54fab85cd14 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index d87eb71072c..2a7350d8b39 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index 1b856e62751..8adc6352eb3 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index 91b12c524e5..8ccfcc3f9e0 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index 41fd6f62fbb..30135bfb1b8 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index 9d95c802276..8fb74844392 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index cfd06cfc69b..ebbbff592ff 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index 1c7ab30ca29..888e396edf3 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index ad6295db9e7..e25a8815116 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index 622439db5bf..a8a791edd03 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index c5a77d8b259..dd426332d70 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index cf677fc48a4..0bbd894611a 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index e12cc55e746..031779e785b 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index 1fdb40cd6fc..6926a3ea0d5 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index 84a9f74ae04..3dc44da35b3 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index 00267d4115c..8c51b11925d 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index 5c0ef698e4a..92527156dce 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index 4b79d926326..8799e0eedde 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index 57bd873b268..9016fb34f0c 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/swahili/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/swahili/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index fa5b427fdc5..857d52d4c51 100644 --- a/curriculum/challenges/swahili/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/swahili/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Task 128 challengeType: 22 dashedName: task-128 diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/simulate-actions-using-a-headless-browser.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/simulate-actions-using-a-headless-browser.md index de70e49a50b..e2bcb31a96d 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/simulate-actions-using-a-headless-browser.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-and-testing-with-chai/simulate-actions-using-a-headless-browser.md @@ -37,7 +37,7 @@ Browser.site = 'http://0.0.0.0:3000'; // Your URL here const browser = new Browser(); ``` -And use the `suiteSetup` hook to direct the `browser` to the `/` route with the following code. **Note**: `done` is passed as a callback to `browser.visit`, you should not invoke it. +І використайте хук `suiteSetup`, щоб направити `browser` до маршруту `/` за допомогою коду нижче. **Примітка**: `done` передається як зворотний виклик до `browser.visit`, тому не викликайте його. ```js suiteSetup(function(done) { diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657e928716b77b2277980276.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657e928716b77b2277980276.md index c6b759aa255..f2a9628dbcb 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657e928716b77b2277980276.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657e928716b77b2277980276.md @@ -7,9 +7,9 @@ dashedName: step-1 # --description-- -In this project, you are going to build a program that takes a `camelCase` or `PascalCase` formatted string as input and converts that to a `snake_case` formatted string using two approaches. First, you'll use a for loop and then list comprehension to achieve the same results. You'll see how list comprehension can make your code more concise. +У цьому проєкті ви створите програму, яка відформатовує рядок у верблюдячомуРегістрі (`camelCase`) або РегістріПаскаля (`PascalCase`) в зміїний_регістр (`snake_case`), використовуючи два підходи. Спочатку ви будете використовувати цикл `for`, а потім — розуміння списку. Ви побачите, як розуміння списку може зробити код більш лаконічним. -Start defining a new function named `convert_to_snake_case()` that accepts a string named `pascal_or_camel_cased_string` as input. For now, add a `pass` statement inside the function. +Для початку визначте нову функцію під назвою `convert_to_snake_case()`, яка приймає рядок під назвою `pascal_or_camel_cased_string` як вхідні дані. Наразі додайте інструкцію `pass` до функції. # --hints-- diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f425dbab54e11993c80f0.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f425dbab54e11993c80f0.md index 0996609c20d..545f7efc023 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f425dbab54e11993c80f0.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f425dbab54e11993c80f0.md @@ -7,9 +7,9 @@ dashedName: step-14 # --description-- -So far, in this project you have used a `for` loop to iterate over your input string and convert it into the desired output. Now you'll begin the transition from a `for` loop to a list comprehension. +Наразі у цьому проєкті ви використовували цикл `for`, щоб ітерувати над вхідним рядком та перетворити його на бажані вихідні дані. Тепер ви почнете переходити від циклу `for` до розуміння списку. -Begin by commenting out all the lines of code inside the `convert_to_snake_case()` function. Не видаляйте їх, оскільки вони будуть корисними під час впровадження логіки за допомогою розуміння списків. +Для початку закоментуйте всі рядки коду в межах функції `convert_to_snake_case()`. Не видаляйте їх, оскільки вони будуть корисними під час впровадження логіки за допомогою розуміння списків. Не забудьте додати ключове слово `pass` до тіла функції, щоб запобігти несправності коду під час тестів. diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f456223b8c1187b461987.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f456223b8c1187b461987.md index 8d98f08e072..e7dc22b5a70 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f456223b8c1187b461987.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f456223b8c1187b461987.md @@ -7,7 +7,7 @@ dashedName: step-19 # --description-- -In Python, a list comprehension is a construct that allows you to generate a new list by applying an expression to each item in an existing iterable and optionally filtering items with a condition. Apart from being briefer, list comprehensions often run faster. +Розуміння списку в Python — це конструкція, яка дозволяє створити новий список, застосовуючи вираз до кожного елемента в наявному ітерованому об’єкті та додатково фільтруючи елементи за умовою. Такий спосіб не лише стислий, але й часто виконується швидше. Базове розуміння списку складається з виразу, за яким слідує умова `for`: diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65f0694fb2296f3caadf8347.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65f0694fb2296f3caadf8347.md index 76bac0ef155..30d421ebda0 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65f0694fb2296f3caadf8347.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65f0694fb2296f3caadf8347.md @@ -1,19 +1,19 @@ --- id: 65f0694fb2296f3caadf8347 -title: Step 6 +title: Крок 6 challengeType: 20 dashedName: step-6 --- # --description-- -Довжина вектора $\mathbf{a}$ (або норма) зазвичай позначається як $\\| \mathbf{a} \\|$. It can be calculated as the square root of the sum of its squared components: \\[ \\| \mathbf{a} \\| = \sqrt{a_1^2 + a_2^2 + \ldots + a_n^2} \\] +Довжина вектора $\mathbf{a}$ (або норма) зазвичай позначається як $\\| \mathbf{a} \\|$. Її можна обчислити як квадратний корінь із суми квадратів його компонентів: \\[ \\| \mathbf{a} \\| = \sqrt{a_1^2 + a_2^2 + \ldots + a_n^2} \\] Обчисліть векторну норму та поверніть результат із методу `norm`. # --hints-- -Your `norm` method should use the provided formula to calculate and return a number representing the norm of the current vector instance. Do not approximate the value. +Метод `norm` має використовувати надану формулу, щоб обчислити та повернути число, яке представляє норму поточного екземпляра вектора. Не наближайте значення. ```js ({ test: () => runPython(` diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65f3fe07cc763212efe91285.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65f3fe07cc763212efe91285.md index 4dd437a693f..74be1a5ec54 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65f3fe07cc763212efe91285.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65f3fe07cc763212efe91285.md @@ -1,23 +1,23 @@ --- id: 65f3fe07cc763212efe91285 -title: Step 11 +title: Крок 11 challengeType: 20 dashedName: step-11 --- # --description-- -A vector can have a number `n` of dimensions (components). Here's a representation of a 3-dimensional vector: +Вектор може мати `n` вимірів (компонентів). Ось представлення 3-вимірного вектора: 3-вимірний вектор з координатами (4, 6, 3) -So far, you created a 2-dimensional vector. You want to be able to represent vectors with a different number of dimensions without rewriting the necessary code for each specific case. For that, you will use inheritance. +Наразі ви створили 2-вимірний вектор. Вам потрібно представляти вектори з різною кількістю вимірів, не переписуючи необхідний код для кожного конкретного випадку. Для цього ви будете використовувати успадкування. -Start by renaming the `Vector` class into `R2Vector` to specify that this class is going to deal with 2-dimensional vectors. Remember to modify the instantiation of `v1`, too. +Для початку перейменуйте клас `Vector` на `R2Vector`, щоб вказати, що цей клас матиме справу з 2-вимірними векторами. Не забудьте також змінити створення екземпляру `v1`. # --hints-- -Перейменуйте клас `Vector` на `R2Vector`. Remember to modify the instantiation of `v1`, too. +Перейменуйте клас `Vector` на `R2Vector`. Не забудьте також змінити створення екземпляру `v1`. ```js ({ diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fa8d5cf0ef3b141010f5d8.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fa8d5cf0ef3b141010f5d8.md index 1d277671da4..7695d67bbe6 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fa8d5cf0ef3b141010f5d8.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fa8d5cf0ef3b141010f5d8.md @@ -7,11 +7,11 @@ dashedName: step-48 # --description-- -It's time to verify that the addition and subtraction operations work as expected. Declare another variable `v3` and assign it the sum of `v1` plus `v2`. +It's time to verify that the addition and subtraction operations work as expected. Оголосіть ще одну змінну `v3` і призначте до неї суму `v1` та `v2`. # --hints-- -You should declare a variable `v3` and assign it the sum of `v1` and `v2`. +Оголосіть змінну `v3` і призначте до неї суму `v1` та `v2`. ```js ({ diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fa8df56a0e2c149b4d24fe.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fa8df56a0e2c149b4d24fe.md index 800f861f118..d462ea05943 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fa8df56a0e2c149b4d24fe.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fa8df56a0e2c149b4d24fe.md @@ -1,13 +1,13 @@ --- id: 65fa8df56a0e2c149b4d24fe -title: Step 49 +title: Крок 49 challengeType: 20 dashedName: step-49 --- # --description-- -Next, check the new vector by printing the following f-string `f'v1 + v2 = {v3}'`. +Потім перевірте новий вектор, надрукувавши такий f-рядок: `f'v1 + v2 = {v3}'`. # --hints-- diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fd9aa649f6cc84631882a9.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fd9aa649f6cc84631882a9.md index 454c7ec8bd5..1e5a82b2555 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fd9aa649f6cc84631882a9.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/65fd9aa649f6cc84631882a9.md @@ -7,7 +7,7 @@ dashedName: step-61 # --description-- -The `__ne__` method is called under the hood when the `!=` operator is used. Define a `__ne__` method with two parameters `self` and `other`. From your new method, return the opposite of `self == other`. +The `__ne__` method is called under the hood when the `!=` operator is used. Визначте метод `__ne__` з двома параметрами: `self` та `other`. From your new method, return the opposite of `self == other`. # --hints-- diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/6659875502b6d7765498f324.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/6659875502b6d7765498f324.md index d25b1a4c723..ae239b506ed 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/6659875502b6d7765498f324.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-special-methods-by-building-a-vector-space/6659875502b6d7765498f324.md @@ -1,23 +1,23 @@ --- id: 6659875502b6d7765498f324 -title: Step 26 +title: Крок 26 challengeType: 20 dashedName: step-26 --- # --description-- -Use f-strings to modify your `print` calls so that they result in the output `v1 = (2, 3)` and `v2 = (2, 2, 3)`, respectively. +Використайте f-рядки, щоб змінити виклики `print` так, щоб вихідними даними були `v1 = (2, 3)` та `v2 = (2, 2, 3)`. # --hints-- -You should use an f-string to interpolate `v1` and generate the output `v1 = (2, 3)`. +Використайте f-рядок, щоб інтерполювати `v1` та згенерувати вихідні дані `v1 = (2, 3)`. ```js ({ test: () => assert(runPython(`_Node(_code).has_call("print(f'v1 = {v1}')")`)) }) ``` -You should use an f-string to interpolate `v2` and generate the output `v2 = (2, 2, 3)`. +Використайте f-рядок, щоб інтерполювати `v2` та згенерувати вихідні дані `v2 = (2, 2, 3)`. ```js ({ test: () => assert(runPython(`_Node(_code).has_call("print(f'v2 = {v2}')")`)) }) diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-the-bisection-method-by-finding-the-square-root-of-a-number/65ef1d5e3d2927c5e0f4997b.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-the-bisection-method-by-finding-the-square-root-of-a-number/65ef1d5e3d2927c5e0f4997b.md index b13cf575795..58cbeaf4bc3 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-the-bisection-method-by-finding-the-square-root-of-a-number/65ef1d5e3d2927c5e0f4997b.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-the-bisection-method-by-finding-the-square-root-of-a-number/65ef1d5e3d2927c5e0f4997b.md @@ -7,9 +7,9 @@ dashedName: step-17 # --description-- -In Python, the `is` keyword checks for object identity. It's used to determine if two variables point to the same object in memory. In contrast to `is`, the equality operator (`==`) determines if the values of two objects are the same, regardless of whether they are the same object in memory. +Ключове слово `is` в Python перевіряє ідентичність об’єкта. Його використовують, щоб визначити, чи дві змінні вказують на один об’єкт в пам’яті. На відміну від `is`, оператор рівності (`==`) визначає, чи значення двох об’єктів одинакові, незалежно від того, чи це однаковий об’єкт в пам’яті. -Outside the for loop, create an `if` statement to check if `root is None`. Якщо так, то надрукуйте повідомлення `'Failed to converge within {max_iterations} iterations.'`. Не забудьте відформатувати повідомлення за допомогою f-рядка. +Поза межами циклу `for` створіть інструкцію `if`, щоб перевірити, чи `root is None`. Якщо так, то надрукуйте повідомлення `'Failed to converge within {max_iterations} iterations.'`. Не забудьте відформатувати повідомлення за допомогою f-рядка. # --hints-- diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-tree-traversal-by-building-a-binary-search-tree/65c4f22498d22ed775ef8efb.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-tree-traversal-by-building-a-binary-search-tree/65c4f22498d22ed775ef8efb.md index 6a127c6feed..26e5a27b006 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-tree-traversal-by-building-a-binary-search-tree/65c4f22498d22ed775ef8efb.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/learn-tree-traversal-by-building-a-binary-search-tree/65c4f22498d22ed775ef8efb.md @@ -9,7 +9,7 @@ dashedName: step-10 Тепер потрібно перевірити, чи параметр `node` є `None`. Якщо так, то метод досягнув кінцевого вузла або порожнього місця в дереві, куди потрібно вставити новий вузол. -Inside the `_insert` method body, replace `pass` with an `if` statement that checks if `node is None`. +Замініть `pass` в межах тіла методу `_insert` на інструкцію `if`, яка перевірятиме, чи `node is None`. В межах нового блоку `if` поверніть `TreeNode(key)`, щоб створити новий екземпляр `TreeNode` з наданим ключем. Він стане новим кінцевим вузлом, тим самим вставляючи ключ у дерево. diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md index 57dd6886cf2..daf801b823f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/663250b42513ef5975599c49.md @@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu You should round `darkColorsArr.length * Math.random()` down to the nearest whole number. ```js -assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/); +assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/); ``` # --seed-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md index 38a26a06616..0ed239c909c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63db7f4677d06d7500a13321.md @@ -11,7 +11,7 @@ In this project, you'll build a decimal and binary converter and learn about bot All of the HTML and CSS for this project has been provided for you. -When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `number-input`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `convert-btn` and store it in a variable called `convertBtn`, and the `output` element with the id `result` and store it in a variable called `result`. +When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a variable called `result`. **NOTE**: This project will only convert positive numbers into binary. diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md index 75d34e0aeff..83aec1f93c6 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/63e9eb5b2328eed3d194b28a.md @@ -11,9 +11,9 @@ If you open your browser's console and type in the number input, you'll see even Since you want to perform an action when the `Enter` key is pressed, the most helpful property is `key`, which tells you the string value of the key that was pressed. -Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `Enter`. Leave the body of your `if` statement empty for now. +Remove the `console.log()` statement from the callback function and add an `if` statement that checks if `e.key` is equal to the string `"Enter"`. Leave the body of your `if` statement empty for now. -Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `Enter`. +Note: Since the `Enter` and `Return` keys have similar functions, they both have the same string value of `"Enter"`. # --hints-- @@ -23,7 +23,7 @@ Your callback function should not contain a `console.log()` statement. assert.notMatch(code, /('|"|`)keydown\1\s*,\s*(\(\s*e\s*\)|e)\s*=>\s*{\s*.*console\.log\(/); ``` -Your `if` statement should check if `e.key` is equal to the string `Enter`. +Your `if` statement should check if `e.key` is equal to the string `"Enter"`. ```js assert.match(code, /if\s*\(\s*(?:e\s*\.\s*key\s*===?\s*('|"|`)Enter\1|('|"|`)Enter\2\s*===?\s*e\s*\.key)\s*\)\s*\{/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md index 9cffb843810..e36ce8e17b4 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64475c0b61cddb6feaab4e2e.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you can alert the user if they don't enter a number, or the number is invalid before you attempt to convert it into binary. -In the body of the `if` statement, use the `alert()` method to display the text `Please provide a decimal number greater than or equal to 0`. +In the body of the `if` statement, use the `alert()` method to display the text `"Please provide a decimal number greater than or equal to 0"`. Note that `alert()` is a method on the `window` object in the browser, so you can use either `window.alert()` or `alert()`. @@ -21,7 +21,7 @@ You should call the `alert()` method within the body of your `if` statement with assert.match(String(checkUserInput), /if\s*\(\s*.+\s*\)\s*\{\s*(window\s*.)?\s*alert\(/); ``` -When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `Please provide a decimal number greater than or equal to 0`. +When there is a falsy value in the `#number-input` element and the `checkUserInput()` function is called, the `alert()` method should display the text `"Please provide a decimal number greater than or equal to 0"`. ```js const numberInput = document.getElementById("number-input"); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md index c2b4a1a0c83..837dcd6eaac 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a0eadcbccaf1d13c7d137.md @@ -44,7 +44,7 @@ Your `decimalToBinary` function should return a string with a length of `4`. assert.strictEqual(decimalToBinary().length, 4); ``` -Your `decimalToBinary` function should return `1010` as a string. +Your `decimalToBinary` function should return `"1010"` as a string. ```js assert.strictEqual(decimalToBinary(), '1010'); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md index 9bcd919f9c7..41293083ce7 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/644a2013b2ceea32c44d09f9.md @@ -36,7 +36,7 @@ Your `decimalToBinary` function should return a string with a length of `8`. assert.strictEqual(decimalToBinary().length, 8); ``` -Your `decimalToBinary` function should return `01110110` as a string. +Your `decimalToBinary` function should return `"01110110"` as a string. ```js assert.strictEqual(decimalToBinary(), '01110110'); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md index 879d5222ec2..d35e78d6cb2 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6693d8e1bf60f2d92e67.md @@ -9,11 +9,11 @@ dashedName: step-31 Now's a good time to check your work. -Log the text `Inputs:`, followed by a comma, followed by the `inputs` array to the console. +Log the text `"Inputs: "`, followed by a comma, followed by the `inputs` array to the console. # --hints-- -You should log the text `Inputs:` and the `inputs` array to the console, separated by a comma. +You should log the text `"Inputs: "` and the `inputs` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Inputs:\s*\1\s*,\s*inputs\s*\)/i); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md index 2b29108834e..2a0a86712bb 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b6c92876e836832538e34.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Next, log the text `Quotients:`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `Remainders:`, followed by a comma, followed by the `remainders` array. +Next, log the text `"Quotients: "`, followed by a comma, followed by the `quotients` array to the console. Also, log the text `"Remainders: "`, followed by a comma, followed by the `remainders` array. # --hints-- -You should log the text `Quotients:` and the `quotients` array to the console, separated by a comma. +You should log the text `"Quotients: "` and the `quotients` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Quotients:\s*\1\s*,\s*quotients\s*\)/i); ``` -You should log the text `Remainders:` and the `remainders` array to the console, separated by a comma. +You should log the text `"Remainders: "` and the `remainders` array to the console, separated by a comma. ```js assert.match(String(decimalToBinary), /console\.log\(\s*('|"|`)Remainders:\s*\1\s*,\s*remainders\s*\)/i); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md index 1ab7952e27a..4514dab09b6 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645b9d56b48971997a8055dd.md @@ -7,11 +7,11 @@ dashedName: step-35 # --description-- -Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `0`. Then, use an early `return` statement to break out of the function early. +Within the body of the `if` statement, set the `innerText` property of `result` equal to the string `"0"`. Then, use an early `return` statement to break out of the function early. # --hints-- -You should set the `innerText` property of `result` equal to the string `0`. +You should set the `innerText` property of `result` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{\s*result\.innerText\s*=\s*('|"|`)\s*0\s*\1/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md index 764de0026e6..6993e15921a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645c86f92a102d82250ce3e8.md @@ -19,7 +19,7 @@ You should add an `if` statement that checks if `input` is equal to `0`. assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?/); ``` -In the body of your `if` statement, you should set `binary` equal to the string `0`. +In the body of your `if` statement, you should set `binary` equal to the string `"0"`. ```js assert.match(String(decimalToBinary), /if\s*\(\s*input\s*===?\s*0\s*\)\s*\{?\s*binary\s*=\s*('|"|`)0\1\s*;?\s*\}?/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md index 040ed1654e0..c376be4648f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cb1306eb27a397be7f18c.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -In your base case, log `Reached base case` to the console. +In your base case, log `"Reached base case"` to the console. # --hints-- -You should log `Reached base case` to the console in your base case. +You should log `"Reached base case"` to the console in your base case. ```js assert.match(String(countDownAndUp), /if\s*\(\s*number\s*===?\s*0\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Reached base case\s*\1\s*\)\s*;?\s*return\s*;?\s*\}/i); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md index aa493edc56d..0ad5c200a24 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cc5925f158b5b33e2698f.md @@ -9,7 +9,7 @@ dashedName: step-48 When your code runs, the `a()` function is added to the call stack first. -In your `callStack` array, add the following string: `a(): returns "freeCodeCamp " + b()`. This represents the function call and the code that will be executed. +In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed. Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`). @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + b()`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`. ```js assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md index c4c18166c78..38d995d6bb3 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645ccf7ec9aca267d84b053e.md @@ -9,7 +9,7 @@ dashedName: step-49 Then, since `a()` calls `b()`, the function `b()` is added to the call stack. -Next, add the following string to your `callStack` array: `b(): returns "is " + c()`. +Next, add the following string to your `callStack` array: `"b(): returns 'is ' + c()"`. Remember that the call stack is a LIFO data structure, so the last function is added to the top or end of the stack, similar to pushing an element into an array. @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The second element in `callStack` should be the string `b(): returns "is " + c()`. +The second element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md index c2618ccc6e5..f300d6e608a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd17b061afb6a8cba945a.md @@ -9,7 +9,7 @@ dashedName: step-50 And since `b()` calls `c()`, the function `c()` is added to the call stack. -Add the following string to your `callStack` array: `c(): returns "awesome!"`. +Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The third element in `callStack` should be the string `c(): returns "awesome!"`. +The third element in `callStack` should be the string `"c(): returns 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md index 4d86cba8a42..adecb3c1caf 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd267410ac06bfcaf0bd4.md @@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning `c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack. -Remove your `c(): returns "awesome!"` string from the top of the `callStack` array. +Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array. # --hints-- @@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + c()`. +The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`. ```js assert.match( diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md index 39fa44745e0..863d96c1a1e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd2b76488fd6cb8d1ae79.md @@ -9,7 +9,7 @@ dashedName: step-52 Then the function `b()` executes and evaluates to `"is " + "awesome!"`. -Update your mock call to `b()` so it looks like this: `b(): returns "is " + "awesome!"`. +Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`. # --hints-- @@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2); assert.isTrue(callStack.every((element) => typeof element === "string")); ``` -The final element in `callStack` should be the string `b(): returns "is " + "awesome!"`. +The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md index e1ef5b0eedf..17ca38cbd39 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/645cd4eb6edf6e6f91acabbb.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `a(): returns "freeCodeCamp " + "is awesome!"`. +Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. # --hints-- @@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1); assert.isString(callStack[0]); ``` -The string in `callStack` should be the string `a(): returns "freeCodeCamp " + "is awesome!"`. +The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`. ```js assert.match( diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md index c5697456106..2c17a4f0bcd 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646467683f25e19bfc9cf9b0.md @@ -9,23 +9,23 @@ dashedName: step-79 Now that your `showAnimation()` function is set up, let's do some testing. -Add three `console.log()` statements in the `showAnimation()` function to log the text `free`, `Code`, and `Camp` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. +Add three `console.log()` statements in the `showAnimation()` function to log the text `"free"`, `"Code"`, and `"Camp"` to the console. You should see that text in the console when you enter `5` into the number input and click the `Convert` button. # --hints-- -You should add a `console.log()` statement for the string `free`. +You should add a `console.log()` statement for the string `"free"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*free\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Code`. +You should add a `console.log()` statement for the string `"Code"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)/i); ``` -You should add a `console.log()` statement for the string `Camp`. +You should add a `console.log()` statement for the string `"Camp"`. ```js assert.match(String(showAnimation), /console\.log\(\s*('|"|`)\s*Camp\s*\1\s*\)/i); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md index 290f0285fe7..79a7d976bd1 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646bc0e5a60ea131e03f91.md @@ -11,7 +11,7 @@ Before you start writing code for the animation, let's take a look at the functi The `setTimeout` function takes two arguments: a callback function and a number representing the time in milliseconds to wait before executing the callback function. -For example, if you wanted to log `Hello, world!` to the console after `3` seconds, you would write: +For example, if you wanted to log `"Hello, world!"` to the console after `3` seconds, you would write: ```js setTimeout(() => { @@ -19,7 +19,7 @@ setTimeout(() => { }, 3000); ``` -Use the `setTimeout` function to add a one second delay before the text `Code` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. +Use the `setTimeout` function to add a one second delay before the text `"Code"` is logged to the console. Then see what happens after you enter `5` into the number input and click the `Convert` button. # --hints-- @@ -35,7 +35,7 @@ You should pass a callback function as the first argument to the `setTimeout` fu assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?|setTimeout\(\s*function\s*\(\s*\)\s*\{/); ``` -Within the callback function, you should log the text `Code` to the console. +Within the callback function, you should log the text `"Code"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*Code\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*Code\s*\2\s*\)/i); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md index f2411256209..4f76113536c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64646db2c684b7a3a174a1d0.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `free`, pausing for a second before logging `Code`, and finally logging `Camp`, you'll see this: +If you test your code, you'll notice that your console logs are not in the expected order. Instead of logging `"free"`, pausing for a second before logging `"Code"`, and finally logging `"Camp"`, you'll see this: ```md free @@ -39,7 +39,7 @@ assert.lengthOf( ); ``` -Within the new `setTimeout()` function's callback, you should log the text `free` to the console. +Within the new `setTimeout()` function's callback, you should log the text `"free"` to the console. ```js assert.match(code, /setTimeout\(\s*\(\s*\)\s*=>\s*\{?\s*console\.log\(\s*('|"|`)\s*free\s*\1\s*\)|setTimeout\(\s*function\s*\(\s*\)\s*\{\s*console\.log\(\s*('|"|`)\s*free\s*\2\s*\)/i); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md index 3d6a40b8ead..508fe5fa6c3 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/646477c82475ffaf0c3c0771.md @@ -15,7 +15,7 @@ Async code works in a similar way. You can start an async operation and other pa You'll learn more about async code in future projects, but the `setTimeout()` function is a good introduction. -Add a `1500` millisecond delay before the text `Camp` is logged to the console. +Add a `1500` millisecond delay before the text `"Camp"` is logged to the console. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md index 1756035f363..8833d3e9c1e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64648cf52e1ce1c8c00956ae.md @@ -9,17 +9,17 @@ dashedName: step-89 Now you'll start building the animation itself. -First, set the `innerText` property of `result` to `Call Stack Animation`. +First, set the `innerText` property of `result` to `"Call Stack Animation"`. # --hints-- -You should set the `innerText` property of `result` to the string `Call Stack Animation`. +You should set the `innerText` property of `result` to the string `"Call Stack Animation"`. ```js assert.match(String(showAnimation), /result\.innerText\s*=\s*('|"|`)Call Stack Animation\1/i); ``` -After calling the `showAnimation` function, the `innerText` property of `result` should be `Call Stack Animation`. +After calling the `showAnimation` function, the `innerText` property of `result` should be `"Call Stack Animation"`. ```js const result = document.getElementById("result"); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md index d7aa266ac60..ab4e8e97469 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649d2459ad94e0a772fc3f.md @@ -9,7 +9,7 @@ dashedName: step-95 Now you'll add a top margin to the paragraph element. -Add a `style` attribute to the paragraph element and use string interpolation to set the value to `margin-top: ${currMarginTop}px;`, where `currMarginTop` is the `marginTop` property of the current object. +Add a `style` attribute to the paragraph element and use string interpolation to set the value to `"margin-top: ${currMarginTop}px;"`, where `currMarginTop` is the `marginTop` property of the current object. # --hints-- @@ -22,7 +22,7 @@ assert.match( ); ``` -You should use string interpolation to set the value of the `style` attribute to `margin-top: ${obj.marginTop}px;`. +You should use string interpolation to set the value of the `style` attribute to `"margin-top: ${obj.marginTop}px;"`. ```js assert.match( diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md index 8c23047903f..b5f3818f774 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/64649efb555939e30462c79b.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Add a `class` attribute set to `animation-frame`. +Add a `class` attribute set to `"animation-frame"`. # --hints-- @@ -20,7 +20,7 @@ assert.match( ); ``` -You should set the value of the `class` attribute to `animation-frame`. +You should set the value of the `class` attribute to `"animation-frame"`. ```js assert.match( diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md index a589a8eb57a..0a22e026394 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464a6d98c43acecb8a7867b.md @@ -10,7 +10,7 @@ dashedName: step-99 Set the value of the `msg` property to the following string: ```md -decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack. +"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. @@ -26,7 +26,7 @@ assert.property( ) ``` -Встановіть значення властивості `msg` на `decimalToBinary(1) returns "1" (base case) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(1) returns '1' (base case) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md index 686c57c8562..44c8dfcab1c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464aabd17cd45f1d17cfe56.md @@ -10,7 +10,7 @@ dashedName: step-101 For the object in the middle of the stack, add the property `msg` set to the following string: ```md -decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack. +"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `10000` and the property `removeElDelay` set to `15000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -Встановіть значення властивості `msg` на `decimalToBinary(2) returns "1" + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(2) returns '1' + 0 (2 % 2) and gives that value to the stack below. Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md index fd0e3c21ce4..31da3e40712 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-recursion-by-building-a-decimal-to-binary-converter/6464ab8c06ea92f30bc548d5.md @@ -10,7 +10,7 @@ dashedName: step-102 For the last animation object, add the property `msg` set to the following string: ```md -decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack. +"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack." ``` Also, add the property `showMsgDelay` set to `15000` and the property `removeElDelay` set to `20000`. @@ -26,7 +26,7 @@ assert.property( ) ``` -You should set the value of the `msg` property to `decimalToBinary(5) returns "10" + 1 (5 % 2). Then it pops off the stack.` +You should set the value of the `msg` property to `"decimalToBinary(5) returns '10' + 1 (5 % 2). Then it pops off the stack."` ```js assert.match( diff --git a/curriculum/challenges/ukrainian/16-the-odin-project/top-learn-to-solve-problems-and-understand-errors/learn-to-solve-problems-and-understand-errors-question-a.md b/curriculum/challenges/ukrainian/16-the-odin-project/top-learn-to-solve-problems-and-understand-errors/learn-to-solve-problems-and-understand-errors-question-a.md index ae5470987e9..ac2fed5be68 100644 --- a/curriculum/challenges/ukrainian/16-the-odin-project/top-learn-to-solve-problems-and-understand-errors/learn-to-solve-problems-and-understand-errors-question-a.md +++ b/curriculum/challenges/ukrainian/16-the-odin-project/top-learn-to-solve-problems-and-understand-errors/learn-to-solve-problems-and-understand-errors-question-a.md @@ -11,7 +11,7 @@ dashedName: learn-to-solve-problems-and-understand-errors-question-a Розв’язання проблем — основне, що роблять розробники програмного забезпечення. Використані мови програмування та інструменти є вторинними у порівнянні з цією фундаментальною навичкою. -У своїй книзі «Мислити, як програміст», В. Антон Спраул визначає розв’язання проблем у програмуванні як: +У своїй книзі «Думай як програміст», В. Антон Спраул визначає розв’язання проблем у програмуванні як: > Розв’язання проблем — це написання оригінальної програми, яка виконує певний набір завдань і відповідає всім визначеним обмеженням. @@ -25,11 +25,11 @@ dashedName: learn-to-solve-problems-and-understand-errors-question-a ## --assignment-- -Прочитайте статтю «Як мислити, як програміст: уроки розв’язання проблем» Річарда Рейса (англійською мовою). +Прочитайте статтю «Думай як програміст: уроки розв’язання проблем» Річарда Рейса (англійською мовою). ## --text-- -Що таке «розв’язання проблем» у програмуванні відповідно до книги «Мислити, як програміст» В. Антона Спраула? +Що таке «розв’язання проблем» у програмуванні відповідно до книги «Думай як програміст» В. Антона Спраула? ## --answers-- diff --git a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-101-to-200/problem-194-coloured-configurations.md b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-101-to-200/problem-194-coloured-configurations.md index 22e24993bb4..1cfc401f52f 100644 --- a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-101-to-200/problem-194-coloured-configurations.md +++ b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-101-to-200/problem-194-coloured-configurations.md @@ -8,7 +8,7 @@ dashedName: problem-194-coloured-configurations # --description-- -Consider graphs built with the units A: graph unit A and B: graph unit B, where the units are glued along the vertical edges as in the graph graph with four units glued along the vertical edges. +Розглянемо графи з елементами A: graph unit A та B: graph unit B, де елементи з’єднані між собою по вертикальних сторонах, як на графі graph with four units glued along the vertical edges. Конфігурація виду $(a,b,c)$ є графом, побудованим з $a$ елементів A та $b$ елементів B, де вершини графа забарвлені $c$ кольорами так, що не існує двох сусідніх вершин одного кольору. Складений граф вище є прикладом виду $(2,2,6)$, а точніше $(2,2,c)$ за умови $c ≥ 4$ diff --git a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-301-to-400/problem-311-biclinic-integral-quadrilaterals.md b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-301-to-400/problem-311-biclinic-integral-quadrilaterals.md index e9ef05b46e0..feb38db4e89 100644 --- a/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-301-to-400/problem-311-biclinic-integral-quadrilaterals.md +++ b/curriculum/challenges/ukrainian/18-project-euler/project-euler-problems-301-to-400/problem-311-biclinic-integral-quadrilaterals.md @@ -16,7 +16,7 @@ $ABCD$ є опуклим трикутником з цілими сторонам Наприклад, наведений нижче чотирикутник є біклінічним чотирикутником з цілими сторонами: $AB = 19$, $BC = 29$, $CD = 37$, $AD = 43$, $BD = 48$ та $AO = CO = 23$. -quadrilateral ABCD, with point O, a midpoint of BD +чотирикутник ABCD з точкою O, яка є серединною точкою BD Нехай $B(N)$ буде кількістю різних біклінічних чотирикутників $ABCD$, які задовільняють умову ${AB}^2 + {BC}^2 + {CD}^2 + {AD}^2 ≤ N$. Можна довести, що $B(10\\,000) = 49$ та $B(1\\,000\\,000) = 38239$. diff --git a/curriculum/challenges/ukrainian/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md b/curriculum/challenges/ukrainian/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md index 3d274510221..0e365c444d5 100644 --- a/curriculum/challenges/ukrainian/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md +++ b/curriculum/challenges/ukrainian/21-a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/657e0d0037192f3d9e3d5417.md @@ -1,5 +1,5 @@ --- -id: 657e0d0037192f3d9e3d5417 +id: 657e0d0037192f3d9e3d5417 title: Завдання 128 challengeType: 22 dashedName: task-128