From 3fcfe897fb7cf5bccf2f26b9a71092f32e2ea6af Mon Sep 17 00:00:00 2001 From: freeCodeCamp's Camper Bot Date: Thu, 18 Jul 2024 07:29:48 -0500 Subject: [PATCH] chore(i18n,learn): processed translations (#55540) Co-authored-by: Naomi Carrigan --- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../64ec9343769e8f85c1e17e05.md | 6 ++--- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../tokenize-a-string-with-escaping.md | 10 ++++++- .../polygon-area-calculator.md | 12 ++++----- .../641da3c6b6fbd742bff6ee40.md | 4 +-- .../641da42481d90c4314c99e94.md | 2 +- .../641da4b16937be43ba24c63d.md | 2 +- .../641da51a9810e74411262fcc.md | 2 +- .../641da6dcb6e4c9463d54c75b.md | 4 +-- .../641da7071d0d45467cd59977.md | 4 +-- .../641da791d0c34a472b8d15b6.md | 6 ++--- .../641da803d9892447d059804e.md | 4 +-- .../641da836581c254815f785fe.md | 4 +-- .../641da86294fd9f485d3c2bf0.md | 8 +++--- .../641da9aceb788e49a73ebcc9.md | 4 +-- .../641daa5ea050f24a7cade6e6.md | 4 +-- .../641daa8c2c3e364ac3650b37.md | 4 +-- .../641daabed8d0584b1150c953.md | 4 +-- .../641daae5e18eae4b562633e4.md | 6 ++--- .../641dab13c1b6f14b9828e6b1.md | 6 ++--- .../64a2d86799a58517c29f79a5.md | 4 +-- .../64aaf2aff7f1fc7a550f40cb.md | 4 +-- .../64aaf83d46b16a7b20a27051.md | 4 +-- .../64ab0134716d0a7c8889f167.md | 4 +-- .../64ab06a9cc033b7d4a8bad2a.md | 4 +-- .../64ab143edad72b7e25b23f8a.md | 4 +-- .../64ab178206f3237eafcc0ef4.md | 4 +-- .../64acebecb7484c8c6a760534.md | 4 +-- .../64aced3e88b0a38cec824dea.md | 4 +-- .../64acedb5f59c0c8d43e96aa4.md | 4 +-- .../64acf1af380a708ded8761f0.md | 4 +-- .../64acf287857bb38e6dd7ca69.md | 4 +-- .../64c703f58330b3767399e486.md | 4 +-- .../64c705fd8969d677066792b8.md | 4 +-- .../64c708fe06b0c3776f90faaf.md | 4 +-- .../64c70d3bf7504978368da6ad.md | 4 +-- .../64c70f78dbf5667a307a7d90.md | 4 +-- .../64c71235eba6c67adaa9a458.md | 4 +-- .../64c7135a9d35797b4bfb01b3.md | 4 +-- .../64c714ec1b844f7bc0723deb.md | 4 +-- .../64c715769bab5f7c14f6cd7b.md | 4 +-- .../64c7168cba4a4f7c90c26277.md | 4 +-- .../64c7173772c2497ce99b474c.md | 4 +-- .../64c7202620a5e17d8a3c777d.md | 4 +-- .../64c72e52133d687e8e6a60f6.md | 4 +-- .../64c73367cce78a7fd65dd3be.md | 4 +-- .../64c734293def73808e609778.md | 4 +-- .../64c736a531835181349c27d2.md | 4 +-- .../64c73981de025581bddb89eb.md | 4 +-- .../64c73df1424422832333a9fa.md | 4 +-- .../64c74a226587f502c0525927.md | 4 +-- .../64c74a8a4138c6032241d498.md | 4 +-- .../64c74c293dd7cf03cbd58194.md | 4 +-- .../64c74e0064a9080443af0796.md | 4 +-- .../64c750c328e06f0878a9272e.md | 4 +-- .../64c7527100b19b09037ce5db.md | 4 +-- .../64c7538db3e33d09704ab148.md | 4 +-- .../64c754f598ca5409d0a08884.md | 4 +-- .../64c755bf0034b20a428a4a1b.md | 4 +-- .../64c7561d44e2300a90a38ab6.md | 4 +-- .../64c7573fd2265f0b1c77e2ec.md | 4 +-- .../64c758ab7352130b775df8c4.md | 4 +-- .../64c764dd9071050d0a2c1473.md | 4 +-- .../64c9bab6998128282da063f9.md | 4 +-- .../64c9db021d4d912906878f3a.md | 4 +-- .../64c9dc4bd63a92295347c449.md | 4 +-- .../64c9e4cc5f06902dc75dc8f4.md | 4 +-- .../64c9e90c433fde2e870285a3.md | 4 +-- .../64c9efea385ca536bf467a7c.md | 4 +-- .../64c9fa51209ab5395d524cce.md | 4 +-- .../64c9fe7b2ffa3539fbf82d32.md | 4 +-- .../64cab4d06512c95234256cbb.md | 4 +-- .../64caea41a4199e54253c60ca.md | 4 +-- .../64caeb134c3cdc5498cd75b9.md | 4 +-- .../64caeeae2fa57756035d6012.md | 4 +-- .../64caf1be15606d5814c3387b.md | 4 +-- .../64caf237baef43587be6d860.md | 4 +-- .../64cb24c224ac2c61fa1c70aa.md | 4 +-- .../64cb262dd91ecc62998736af.md | 4 +-- .../64cb26e84dd0b56313ba0c6e.md | 4 +-- .../64cb2a87057eb5655c66d1c2.md | 4 +-- .../64cb2da32f8443669fd4e725.md | 4 +-- .../64cb2e5bdfb23a67272a07c7.md | 4 +-- .../64cb2ff0c31b0f67a6d76a47.md | 4 +-- .../64cb30b8e4719a67fe14f364.md | 4 +-- .../64cb34c01b3d856a9a59261d.md | 4 +-- .../64cb3f62b10c336bada1c70c.md | 4 +-- .../64cb472593e3be6d10a7c13b.md | 4 +-- .../64cb480723790d6d727b8ef5.md | 4 +-- .../64cb48e36c9ad56dd7a523f4.md | 4 +-- .../64cb4978631a4f6e3e1b964d.md | 4 +-- .../64cb4e676c156f7332f40db7.md | 4 +-- .../64cb4ebdc75b3a73a43da5ec.md | 4 +-- .../64cb50fd95831a745ea60d13.md | 4 +-- .../64cb522509ffb274daf9fd9e.md | 4 +-- .../64cb583dadb33a77595797bd.md | 4 +-- .../64cb5d1d48532b79b4e7ef6c.md | 4 +-- .../6507512fe521de40085b8831.md | 4 +-- .../650755908a8071409ab9e09e.md | 4 +-- .../650756e20cffbe41305a0dde.md | 4 +-- .../650757918a9e97418dc3d71a.md | 8 +++--- .../65b006efc74c675c2bdfccba.md | 6 ++--- .../65b00a6f1c429c5e9fa50e90.md | 8 +++--- .../65b2a465d7ca3ab6e902285b.md | 4 +-- .../65b2bb4c279af3cd585ba777.md | 4 +-- .../657e0c2c6a9d37705146f34d.md | 27 +++++++++++-------- .../links-and-images-lesson-h.md | 2 +- .../tokenize-a-string-with-escaping.md | 10 ++++++- 1146 files changed, 2644 insertions(+), 2501 deletions(-) diff --git a/curriculum/challenges/arabic/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/arabic/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 2135d0f5831..9a4c3ff82f2 100644 --- a/curriculum/challenges/arabic/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/arabic/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ When a Rectangle object is created, it should be initialized with `width` and `h - `get_area`: Returns area (`width * height`) - `get_perimeter`: Returns perimeter (`2 * width + 2 * height`) - `get_diagonal`: Returns diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: Returns a string that represents the shape using lines of "\*". The number of lines should be equal to the height and the number of "\*" in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: "Too big for picture.". +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Takes another shape (square or rectangle) as an argument. Returns the number of times the passed in shape could fit inside the shape (with no rotations). For instance, a rectangle with a width of 4 and a height of 8 could fit in two squares with sides of 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Square class The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index c81e1167a01..5173a604e2e 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Here is how you can make a `GET` request with the `fetch()` method: fetch("url-goes-here") ``` -Make a `GET` request to this URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index 89835fd316c..2f3edbb3791 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index fb8ef9648f4..005be23e386 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Chain another `.then()` to the existing `.then()` method. This time, pass in `da # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index ecf561f83f0..18c83f75492 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` a # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index b8613a7b081..875afcde826 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use template interpolation to do this. -Also, add a `class` of `user-card` to the `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -You should create a `div` element with the class `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index 6b6a17e29a1..5dc37733e4c 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you need to show some information about the author. First, show the author's name. -Create an `h2` tag with the `class` `author-name`. Then, interpolate `author` inside the `h2` tag. This is the author's name. +Create an `h2` tag with the `class` `"author-name"`. Then, interpolate `author` inside the `h2` tag. This is the author's name. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -Your `h2` element should have a class set to `author-name` +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index 3c8e6e946bc..e254109b5ba 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Now `authorDataArr` is the same as the `data` you logged to the console a while ago. Log `authorDataArr` to the console to confirm this. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ You should assign `data` to the `authorDataArr` variable assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -You should have a console log with the text `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -You should use comma to separate your `Author Data Array:` text and `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index f9f8dad7210..3b31d05c2d9 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Now create an image tag and give it the `class` `user-img`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `avatar`. Make sure there is a space between the `author` variable and the word `avatar`, for example, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -Your `img` element should have the class `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index d26c945d548..70a4c5dcdcf 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 The next thing you'll show are biographical details about the author. You can do this with `bio` that you destructured earlier. -Add a paragraph element with the `class` `bio`, then interpolate `bio` inside the paragraph element. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ You should create a `p` element. assert.exists(document.querySelector('p')); ``` -Your `p` element should have the class `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index b2b22355425..5042ea0cefa 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Next, add a link to the author's page on freeCodeCamp News. -Add an anchor element with the `class` `author-link`, interpolate `url` as the value for the `href` attribute, and set `target` to `_blank`. For the text of the anchor element, interpolate `author` followed by the text `'s author page`. For example, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ You should create an anchor element. assert.exists(document.querySelector('a')); ``` -Your anchor element should have the class `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ You should interpolate `url` as the value of your anchor's `href` attribute. assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -You should set the `target` attribute of your anchor element to `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -You should interpolate `author` followed by the text `'s author page` inside your anchor element. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index a69b4a7ffad..c3d95330e73 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Remember that in step 1 you selected the `Load More Authors` button and assigned it to `loadMoreBtn`. -Use `addEventListener` to add a `click` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. After that, when you click the button you should see 8 more authors. @@ -21,7 +21,7 @@ You should call the `addEventListener()` method on your `loadMoreBtn` variable. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -Your event listener should listen for a `click` event. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index e764cffcf43..5eb2d3f868f 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `No more data to load`. +If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ You should set the `disabled` property of `loadMoreBtn` to `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -You should set the `textContent` of `loadMoreBtn` to `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index 98e20831f38..79e66536c62 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Next, there's not a lot of separation between each author's name and image, and the rest of the details on the card. A divider will give the author cards a clear visual hierarchy. -Add a `div` element above the author's bio and give it the `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ You should create a `div` element before your `p` element. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -Your `div` element should have the `class` set to `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index 3647544845b..8549d77c396 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis (...). Otherwise, you can show the entire bio. +Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Otherwise, you can show the entire bio. Within the paragraph element, replace `bio` with a ternary operator. For the condition, check if the length of `bio` is greater than 50. If it is, use the `.slice()` method to extract the first 50 characters of `bio` and add an ellipsis at the end. Otherwise, show the full `bio`. @@ -31,7 +31,7 @@ You should check if the length of the `bio` text is greater than `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `...`. Don't forget that indexes are zero-based. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Don't forget that indexes are zero-based. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index b568b8de86d..f2ad6773582 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. -Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `error-msg` and text `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ You should access the `innerHTML` of `authorContainer` and set it to a `p` eleme assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -Your `p` element should have the class `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -Your `p` element should have the text `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index 46e8509d452..3c7addb5b74 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -شيء واحد آخر. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `No more data to load`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? +شيء واحد آخر. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? -Access the `style` property of the `Load More Authors` button and set `cursor` to `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. With that, your author page is complete! @@ -27,7 +27,7 @@ You should access `cursor` from the `style` property with dot notation. assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -You should set the value of the `cursor` property to `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index f56783e00f9..5a818255524 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 303311211d4..f7d76a25daf 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 2a72a101773..f48537b9476 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index a6b0501236d..986d9f34b65 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 28877ef405a..5c42e4fbe62 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/arabic/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/arabic/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index a95d3927542..2abd8b10dda 100644 --- a/curriculum/challenges/arabic/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/arabic/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/chinese-traditional/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/chinese-traditional/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 2135d0f5831..9a4c3ff82f2 100644 --- a/curriculum/challenges/chinese-traditional/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/chinese-traditional/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ When a Rectangle object is created, it should be initialized with `width` and `h - `get_area`: Returns area (`width * height`) - `get_perimeter`: Returns perimeter (`2 * width + 2 * height`) - `get_diagonal`: Returns diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: Returns a string that represents the shape using lines of "\*". The number of lines should be equal to the height and the number of "\*" in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: "Too big for picture.". +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Takes another shape (square or rectangle) as an argument. Returns the number of times the passed in shape could fit inside the shape (with no rotations). For instance, a rectangle with a width of 4 and a height of 8 could fit in two squares with sides of 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Square class The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index 552f0cecd31..45230cf778f 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Here is how you can make a `GET` request with the `fetch()` method: fetch("url-goes-here") ``` -Make a `GET` request to this URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index f82459abb07..81a23abbb4f 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index 4141d15d4c5..ffbc45ac06f 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Chain another `.then()` to the existing `.then()` method. This time, pass in `da # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index ed5c84d787f..a3a9948d970 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` a # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index b60d3e7aa2c..62ca43c8844 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use template interpolation to do this. -Also, add a `class` of `user-card` to the `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -You should create a `div` element with the class `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index 07598ccb4c9..8d94e3b590e 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you need to show some information about the author. First, show the author's name. -Create an `h2` tag with the `class` `author-name`. Then, interpolate `author` inside the `h2` tag. This is the author's name. +Create an `h2` tag with the `class` `"author-name"`. Then, interpolate `author` inside the `h2` tag. This is the author's name. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -Your `h2` element should have a class set to `author-name` +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index e37064c5687..90b0ca34726 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Now `authorDataArr` is the same as the `data` you logged to the console a while ago. Log `authorDataArr` to the console to confirm this. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ You should assign `data` to the `authorDataArr` variable assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -You should have a console log with the text `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -You should use comma to separate your `Author Data Array:` text and `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index 4b7cad7706d..e2f9a397fbc 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Now create an image tag and give it the `class` `user-img`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `avatar`. Make sure there is a space between the `author` variable and the word `avatar`, for example, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -Your `img` element should have the class `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index 308dc8eba33..3ed7a1781ff 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 The next thing you'll show are biographical details about the author. You can do this with `bio` that you destructured earlier. -Add a paragraph element with the `class` `bio`, then interpolate `bio` inside the paragraph element. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ You should create a `p` element. assert.exists(document.querySelector('p')); ``` -Your `p` element should have the class `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index 810e72081c4..41ad8e43fbf 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Next, add a link to the author's page on freeCodeCamp News. -Add an anchor element with the `class` `author-link`, interpolate `url` as the value for the `href` attribute, and set `target` to `_blank`. For the text of the anchor element, interpolate `author` followed by the text `'s author page`. For example, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ You should create an anchor element. assert.exists(document.querySelector('a')); ``` -Your anchor element should have the class `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ You should interpolate `url` as the value of your anchor's `href` attribute. assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -You should set the `target` attribute of your anchor element to `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -You should interpolate `author` followed by the text `'s author page` inside your anchor element. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index 7875fe42f15..7227c23ac69 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Remember that in step 1 you selected the `Load More Authors` button and assigned it to `loadMoreBtn`. -Use `addEventListener` to add a `click` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. After that, when you click the button you should see 8 more authors. @@ -21,7 +21,7 @@ You should call the `addEventListener()` method on your `loadMoreBtn` variable. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -Your event listener should listen for a `click` event. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index 471abb1db3b..22c17682e22 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `No more data to load`. +If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ You should set the `disabled` property of `loadMoreBtn` to `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -You should set the `textContent` of `loadMoreBtn` to `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index e0530683268..8562d3fb07b 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Next, there's not a lot of separation between each author's name and image, and the rest of the details on the card. A divider will give the author cards a clear visual hierarchy. -Add a `div` element above the author's bio and give it the `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ You should create a `div` element before your `p` element. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -Your `div` element should have the `class` set to `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index 7bf072a3c25..70e99576d03 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis (...). Otherwise, you can show the entire bio. +Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Otherwise, you can show the entire bio. Within the paragraph element, replace `bio` with a ternary operator. For the condition, check if the length of `bio` is greater than 50. If it is, use the `.slice()` method to extract the first 50 characters of `bio` and add an ellipsis at the end. Otherwise, show the full `bio`. @@ -31,7 +31,7 @@ You should check if the length of the `bio` text is greater than `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `...`. Don't forget that indexes are zero-based. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Don't forget that indexes are zero-based. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index c6f778bd5c0..7e6041446c0 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. -Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `error-msg` and text `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ You should access the `innerHTML` of `authorContainer` and set it to a `p` eleme assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -Your `p` element should have the class `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -Your `p` element should have the text `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index c9bf88a1097..94ed3debf18 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -還有一件事。 If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `No more data to load`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? +還有一件事。 If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? -Access the `style` property of the `Load More Authors` button and set `cursor` to `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. With that, your author page is complete! @@ -27,7 +27,7 @@ You should access `cursor` from the `style` property with dot notation. assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -You should set the value of the `cursor` property to `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index f56783e00f9..5a818255524 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 303311211d4..f7d76a25daf 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 2a72a101773..f48537b9476 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index a6b0501236d..986d9f34b65 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 28877ef405a..5c42e4fbe62 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/chinese-traditional/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/chinese-traditional/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index 4add9590a71..617699657f3 100644 --- a/curriculum/challenges/chinese-traditional/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/chinese-traditional/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/chinese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/chinese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 2135d0f5831..9a4c3ff82f2 100644 --- a/curriculum/challenges/chinese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/chinese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ When a Rectangle object is created, it should be initialized with `width` and `h - `get_area`: Returns area (`width * height`) - `get_perimeter`: Returns perimeter (`2 * width + 2 * height`) - `get_diagonal`: Returns diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: Returns a string that represents the shape using lines of "\*". The number of lines should be equal to the height and the number of "\*" in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: "Too big for picture.". +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Takes another shape (square or rectangle) as an argument. Returns the number of times the passed in shape could fit inside the shape (with no rotations). For instance, a rectangle with a width of 4 and a height of 8 could fit in two squares with sides of 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Square class The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index f3760441a9b..ed1db819f44 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Here is how you can make a `GET` request with the `fetch()` method: fetch("url-goes-here") ``` -Make a `GET` request to this URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index d474c7cde0c..2a1bfc6648c 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index 2f1dd729ad6..7392a5e2b37 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Chain another `.then()` to the existing `.then()` method. This time, pass in `da # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index acce1841010..f01a0bc828d 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` a # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index 543bf82f751..8de41b62fb8 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use template interpolation to do this. -Also, add a `class` of `user-card` to the `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -You should create a `div` element with the class `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index 2005ee81904..3fb3c1b1d85 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you need to show some information about the author. First, show the author's name. -Create an `h2` tag with the `class` `author-name`. Then, interpolate `author` inside the `h2` tag. This is the author's name. +Create an `h2` tag with the `class` `"author-name"`. Then, interpolate `author` inside the `h2` tag. This is the author's name. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -Your `h2` element should have a class set to `author-name` +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index 195fa6d205b..c73263e648f 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Now `authorDataArr` is the same as the `data` you logged to the console a while ago. Log `authorDataArr` to the console to confirm this. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ You should assign `data` to the `authorDataArr` variable assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -You should have a console log with the text `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -You should use comma to separate your `Author Data Array:` text and `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index 4b7cad7706d..e2f9a397fbc 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Now create an image tag and give it the `class` `user-img`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `avatar`. Make sure there is a space between the `author` variable and the word `avatar`, for example, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -Your `img` element should have the class `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index fc00aca5fb9..f32ce2cd2c2 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 The next thing you'll show are biographical details about the author. You can do this with `bio` that you destructured earlier. -Add a paragraph element with the `class` `bio`, then interpolate `bio` inside the paragraph element. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ You should create a `p` element. assert.exists(document.querySelector('p')); ``` -Your `p` element should have the class `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index bd9a7a5a378..1ea77543d2f 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Next, add a link to the author's page on freeCodeCamp News. -Add an anchor element with the `class` `author-link`, interpolate `url` as the value for the `href` attribute, and set `target` to `_blank`. For the text of the anchor element, interpolate `author` followed by the text `'s author page`. For example, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ You should create an anchor element. assert.exists(document.querySelector('a')); ``` -Your anchor element should have the class `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ You should interpolate `url` as the value of your anchor's `href` attribute. assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -You should set the `target` attribute of your anchor element to `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -You should interpolate `author` followed by the text `'s author page` inside your anchor element. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index c6adbf13f81..626ac9371cc 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Remember that in step 1 you selected the `Load More Authors` button and assigned it to `loadMoreBtn`. -Use `addEventListener` to add a `click` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. After that, when you click the button you should see 8 more authors. @@ -21,7 +21,7 @@ You should call the `addEventListener()` method on your `loadMoreBtn` variable. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -Your event listener should listen for a `click` event. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index 49e153f4eaf..9092359e414 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `No more data to load`. +If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ You should set the `disabled` property of `loadMoreBtn` to `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -You should set the `textContent` of `loadMoreBtn` to `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index 4bfa41f70af..c94f91f5cb1 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Next, there's not a lot of separation between each author's name and image, and the rest of the details on the card. A divider will give the author cards a clear visual hierarchy. -Add a `div` element above the author's bio and give it the `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ You should create a `div` element before your `p` element. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -Your `div` element should have the `class` set to `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index 6b6a6d0f6bb..b2888939ef6 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis (...). Otherwise, you can show the entire bio. +Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Otherwise, you can show the entire bio. Within the paragraph element, replace `bio` with a ternary operator. For the condition, check if the length of `bio` is greater than 50. If it is, use the `.slice()` method to extract the first 50 characters of `bio` and add an ellipsis at the end. Otherwise, show the full `bio`. @@ -31,7 +31,7 @@ You should check if the length of the `bio` text is greater than `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `...`. Don't forget that indexes are zero-based. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Don't forget that indexes are zero-based. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index c6f778bd5c0..7e6041446c0 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. -Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `error-msg` and text `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ You should access the `innerHTML` of `authorContainer` and set it to a `p` eleme assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -Your `p` element should have the class `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -Your `p` element should have the text `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index e84bd2550e3..9c65234fedb 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -还有一件事。 If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `No more data to load`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? +还有一件事。 If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? -Access the `style` property of the `Load More Authors` button and set `cursor` to `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. With that, your author page is complete! @@ -27,7 +27,7 @@ You should access `cursor` from the `style` property with dot notation. assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -You should set the value of the `cursor` property to `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index f56783e00f9..5a818255524 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 303311211d4..f7d76a25daf 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 2a72a101773..f48537b9476 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index a6b0501236d..986d9f34b65 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 28877ef405a..5c42e4fbe62 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/chinese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/chinese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index d03cd749c07..53264e6136b 100644 --- a/curriculum/challenges/chinese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/chinese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/espanol/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/espanol/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 2135d0f5831..9a4c3ff82f2 100644 --- a/curriculum/challenges/espanol/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/espanol/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ When a Rectangle object is created, it should be initialized with `width` and `h - `get_area`: Returns area (`width * height`) - `get_perimeter`: Returns perimeter (`2 * width + 2 * height`) - `get_diagonal`: Returns diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: Returns a string that represents the shape using lines of "\*". The number of lines should be equal to the height and the number of "\*" in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: "Too big for picture.". +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Takes another shape (square or rectangle) as an argument. Returns the number of times the passed in shape could fit inside the shape (with no rotations). For instance, a rectangle with a width of 4 and a height of 8 could fit in two squares with sides of 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Square class The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index 2babdffa213..725bd8e4086 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Here is how you can make a `GET` request with the `fetch()` method: fetch("url-goes-here") ``` -Make a `GET` request to this URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index c6cd3c85581..1ce2058f200 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index de8f81dae42..61b737d915d 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Chain another `.then()` to the existing `.then()` method. This time, pass in `da # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index 29f50cc28dd..ccf0e727880 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` a # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index d2ee1a63232..bf0444ba736 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use template interpolation to do this. -Also, add a `class` of `user-card` to the `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -You should create a `div` element with the class `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index 3bb57b1ce8d..d2732623a87 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you need to show some information about the author. First, show the author's name. -Create an `h2` tag with the `class` `author-name`. Then, interpolate `author` inside the `h2` tag. This is the author's name. +Create an `h2` tag with the `class` `"author-name"`. Then, interpolate `author` inside the `h2` tag. This is the author's name. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -Your `h2` element should have a class set to `author-name` +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index 1680f752014..95cd5c4c717 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Now `authorDataArr` is the same as the `data` you logged to the console a while ago. Log `authorDataArr` to the console to confirm this. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ You should assign `data` to the `authorDataArr` variable assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -You should have a console log with the text `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -You should use comma to separate your `Author Data Array:` text and `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index 3239fa470e3..b5eaebc8e1c 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Now create an image tag and give it the `class` `user-img`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `avatar`. Make sure there is a space between the `author` variable and the word `avatar`, for example, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -Your `img` element should have the class `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index afe598f852d..21a6185e7a9 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 The next thing you'll show are biographical details about the author. You can do this with `bio` that you destructured earlier. -Add a paragraph element with the `class` `bio`, then interpolate `bio` inside the paragraph element. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ You should create a `p` element. assert.exists(document.querySelector('p')); ``` -Your `p` element should have the class `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index afcea011460..b280076989c 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Next, add a link to the author's page on freeCodeCamp News. -Add an anchor element with the `class` `author-link`, interpolate `url` as the value for the `href` attribute, and set `target` to `_blank`. For the text of the anchor element, interpolate `author` followed by the text `'s author page`. For example, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ You should create an anchor element. assert.exists(document.querySelector('a')); ``` -Your anchor element should have the class `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ You should interpolate `url` as the value of your anchor's `href` attribute. assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -You should set the `target` attribute of your anchor element to `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -You should interpolate `author` followed by the text `'s author page` inside your anchor element. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index 0fc9cdbe568..02bd12033ee 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Remember that in step 1 you selected the `Load More Authors` button and assigned it to `loadMoreBtn`. -Use `addEventListener` to add a `click` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. After that, when you click the button you should see 8 more authors. @@ -21,7 +21,7 @@ You should call the `addEventListener()` method on your `loadMoreBtn` variable. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -Your event listener should listen for a `click` event. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index bc6532e6c23..0f3d6849ef7 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `No more data to load`. +If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ You should set the `disabled` property of `loadMoreBtn` to `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -You should set the `textContent` of `loadMoreBtn` to `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index c8defa1b68a..555884dd1fb 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Next, there's not a lot of separation between each author's name and image, and the rest of the details on the card. A divider will give the author cards a clear visual hierarchy. -Add a `div` element above the author's bio and give it the `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ You should create a `div` element before your `p` element. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -Your `div` element should have the `class` set to `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index 742fa2f7c57..26eeb271e61 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis (...). Otherwise, you can show the entire bio. +Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Otherwise, you can show the entire bio. Within the paragraph element, replace `bio` with a ternary operator. For the condition, check if the length of `bio` is greater than 50. If it is, use the `.slice()` method to extract the first 50 characters of `bio` and add an ellipsis at the end. Otherwise, show the full `bio`. @@ -31,7 +31,7 @@ You should check if the length of the `bio` text is greater than `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `...`. Don't forget that indexes are zero-based. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Don't forget that indexes are zero-based. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index d0c7437486e..25a667a147d 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. -Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `error-msg` and text `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ You should access the `innerHTML` of `authorContainer` and set it to a `p` eleme assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -Your `p` element should have the class `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -Your `p` element should have the text `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index c17ed9e6430..d693231aef1 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -Una cosa más. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `No more data to load`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? +Una cosa más. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? -Access the `style` property of the `Load More Authors` button and set `cursor` to `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. With that, your author page is complete! @@ -27,7 +27,7 @@ You should access `cursor` from the `style` property with dot notation. assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -You should set the value of the `cursor` property to `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index f56783e00f9..5a818255524 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 303311211d4..f7d76a25daf 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 2a72a101773..f48537b9476 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index a6b0501236d..986d9f34b65 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 28877ef405a..5c42e4fbe62 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/espanol/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/espanol/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index a95d3927542..2abd8b10dda 100644 --- a/curriculum/challenges/espanol/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/espanol/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/german/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/german/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 2135d0f5831..9a4c3ff82f2 100644 --- a/curriculum/challenges/german/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/german/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ When a Rectangle object is created, it should be initialized with `width` and `h - `get_area`: Returns area (`width * height`) - `get_perimeter`: Returns perimeter (`2 * width + 2 * height`) - `get_diagonal`: Returns diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: Returns a string that represents the shape using lines of "\*". The number of lines should be equal to the height and the number of "\*" in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: "Too big for picture.". +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Takes another shape (square or rectangle) as an argument. Returns the number of times the passed in shape could fit inside the shape (with no rotations). For instance, a rectangle with a width of 4 and a height of 8 could fit in two squares with sides of 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Square class The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index c585030236f..7f2a897e2bb 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Hiermit kannst du eine `GET`-Anfrage mit der `fetch()`-Methode stellen: fetch("url-goes-here") ``` -Stelle eine `GET`-Anfrage an diese URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -Du solltest die `fetch()`-Methode verwenden, um eine `GET`-Anfrage an `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json` zu stellen. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index d9d1dde2268..dbe57727fad 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -Du solltest die `fetch()`-Methode verwenden, um eine `GET`-Anfrage an `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json` zu stellen. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index 65c7eca9850..9167fc9499a 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Verkette ein weiteres `.then()` mit der bestehenden `.then()`-Methode. Übergib # --hints-- -Du solltest die `fetch()`-Methode verwenden, um eine `GET`-Anfrage an `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json` zu stellen. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index 52cff0ad050..7895369f501 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Verkette `.catch()` mit dem letzten `.then()`. Übergib ihm eine Callback-Funkti # --hints-- -Du solltest die `fetch()`-Methode verwenden, um eine `GET`-Anfrage an `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json` zu stellen. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index 6ce57b754e2..dfef446c421 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Erstelle innerhalb der Template-Literale ein `div`-Element, dessen `id` auf den `index` aus der Array-Methode `.forEach()` gesetzt ist. Denke daran, die Template-Interpolation dafür zu verwenden. -Füge dem `div` außerdem die `class` `user-card` hinzu. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -Du solltest ein `div`-Element mit der Klasse `user-card` erstellen. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index d747fbbfdf3..4fac5baa40b 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Nun musst du einige Informationen über den Autor angeben. Zeige zunächst den Namen des Autors an. -Erstelle ein `h2`-Tag mit der `class` `author-name`. Interpoliere dann den `author` innerhalb des `h2`-Tags. Dies ist der Name des Autors. +Create an `h2` tag with the `class` `"author-name"`. Interpoliere dann den `author` innerhalb des `h2`-Tags. Dies ist der Name des Autors. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -Dein `h2`-Element sollte eine Klasse auf `author-name` gesetzt haben +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index 6129eaf607e..d11cded3d28 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Jetzt ist `authorDataArr` dasselbe wie die `data`, die du vor einer Weile in die Konsole eingegeben hast. Gebe `authorDataArr` in die Konsole ein, um dies zu bestätigen. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Verwende ein Komma, um den Text von `authorDataArr` zu trennen. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Verwende ein Komma, um den Text von `authorDataArr` zu trennen. # --hints-- @@ -19,13 +19,13 @@ Du solltest der `authorDataArr`-Variablen `data` zuweisen assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -Du solltest ein Konsolen-Protokoll mit dem Text `Author Data Array:` erhalten. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -Du solltest Kommata verwenden, um deinen `Author Data Array:`-Text und `authorDataArr` zu trennen. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index c7f3d645dc5..c87652938ac 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Now create an image tag and give it the `class` `user-img`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `avatar`. Make sure there is a space between the `author` variable and the word `avatar`, for example, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -Your `img` element should have the class `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index 66121143b8f..c97f04d26f3 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 Als Nächstes wirst du biografische Angaben zum Autor aufführen. Du kannst dies mit `bio` machen, was du vorher destrukturiert hast. -Füge ein Absatz-Element mit der `class` `bio` hinzu und füge dann `bio` innerhalb des Absatz-Elements ein. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ Du solltest ein `p`-Element erstellen. assert.exists(document.querySelector('p')); ``` -Dein `p`-Element sollte die Klasse `bio` enthalten +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index 8f9ca81f92e..db15d3f9fa9 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Füge als Nächstes einen Link zur Autorenseite auf freeCodeCamp News hinzu. -Füge ein Anchor-Element mit `class` `author-link` hinzu, interpoliere die `url` als Wert für das `href`-Attribut und setze `target` auf `_blank`. Interpoliere `author` für den Text des Anchor-Elements, gefolgt von dem Text `'s author page`. Zum Beispiel `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ Du solltest ein Anchor-Element erstellen. assert.exists(document.querySelector('a')); ``` -Dein Anchor-Element sollte die Klasse `author-link` enthalten. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ Du solltest `url` als den Wert des `href`-Attributs deines Anchors interpolieren assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -Du solltest das `target`-Attribut deines Ankerelements auf `_blank` setzen. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -Du solltest `author` gefolgt von dem Text `'s author page` innerhalb deines Anchor-Elements einfügen. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index 3a49ab9e0fa..aaea7567fc0 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Denke daran, dass du in Schritt 1 den `Load More Authors`-Button ausgewählt und ihn `loadMoreBtn` zugewiesen hast. -Verwende `addEventListener`, um dem `loadMoreBtn` einen `click`-Event-Listener hinzuzufügen. Übergib außerdem einen Verweis auf die `fetchMoreAuthors`-Funktion, die beim Anklicken des Buttons ausgeführt wird. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Übergib außerdem einen Verweis auf die `fetchMoreAuthors`-Funktion, die beim Anklicken des Buttons ausgeführt wird. Wenn du dann auf den Button klickst, solltest du 8 weitere Autoren sehen. @@ -21,7 +21,7 @@ Du solltest die `addEventListener()`-Methode für deine `loadMoreBtn`-Variable a assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -Dein Event -Listener sollte auf das `click`-Ereignis hören. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index 9ffb69d4eb8..77046d8858c 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -Wenn diese Bedingung erfüllt ist, dann deaktiviere den Button, indem du seine `disabled`-Eigenschaft auf `true` setzt. Setze außerdem den `textContent` des Buttons auf `No more data to load`. +Wenn diese Bedingung erfüllt ist, dann deaktiviere den Button, indem du seine `disabled`-Eigenschaft auf `true` setzt. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ Du solltest die `disabled`-Eigenschaft von `loadMoreBtn` auf `true` setzen. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -Du solltest den `textContent` von `loadMoreBtn` auf `No more data to load` setzen. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index 9fe44bb67c0..a0723f078f8 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Außerdem ist der Abstand zwischen dem Namen und Bild des jeweiligen Autors und den übrigen Angaben auf der Karte zu klein. A divider will give the author cards a clear visual hierarchy. -Füge ein `div`-Element über die Biografie des Autors hinzu und gib ihm die `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ Du solltest ein `div`-Element vor deinem `p`-Element erstellen. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -Dein `div`-Element sollte die `class` mit dem Wert `purple-divider` haben. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index 279a60fd2e4..57429196c03 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Einige der Autorenbiografien sind viel länger als andere. Um den Karten einen einheitliches Aussehen zu geben, kannst du die ersten 50 Zeichen jeder Karte extrahieren und den Rest mit einer Ellipse (...) ersetzen. Andernfalls kannst du die gesamte Biografie anzeigen. +Einige der Autorenbiografien sind viel länger als andere. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Andernfalls kannst du die gesamte Biografie anzeigen. Ersetze innerhalb des Absatz-Elements `bio` mit einem ternären Operator. Prüfe für die Bedingung, ob die Länge von `bio` größer als 50 ist. Ist dies der Fall, dann verwende die `.slice()`-Methode, um die ersten 50 Zeichen deiner `bio` zu extrahieren und um am Ende eine Ellipse hinzuzufügen. Zeige andernfalls die ganze `bio`. @@ -31,7 +31,7 @@ Du solltest überprüfen, ob die Länge des `bio`-Texts größer ist als `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -Wenn der `bio`-Text mehr als `50` Zeichen enthält, solltest du die ersten 50 Zeichen mit `slice()` extrahieren und den Rest durch `...` ersetzen. Denke daran, dass Indexe nullbasiert sind. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Denke daran, dass Indexe nullbasiert sind. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index 4bee82730e0..089f8217256 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Und was ist, wenn ein Fehler auftritt und die Autorendaten nicht geladen werden können? Dann muss ein Fehler in der Benutzeroberfläche angezeigt werden. Genau dafür ist die `.catch()`-Methode gedacht – für die Handhabung von Fehlern. -Entferne innerhalb `.catch()` den `console.error()` und setze das `innerHTML` von `authorContainer` auf ein `p`-Element mit der `class` `error-msg` und dem Text `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ Du solltest auf das `innerHTML` von `authorContainer` zugreifen und es zu einem assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -Dein `p`-Element sollte die Klasse `error-msg` enthalten. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -Dein `p`-Element sollte den Text `There was an error loading the authors` enthalten. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index e920cd4bdb4..f37df001daf 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -Eine Sache noch. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `No more data to load`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? +Eine Sache noch. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? -Greife auf die `style`-Eigenschaft des `Load More Authors`-Buttons zu und setze `cursor` auf `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. Damit ist die Autorenseite fertig! @@ -27,7 +27,7 @@ Du solltest den `cursor` aus der `style`-Eigenschaft mit der Punktschreibweise a assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -Du solltest den Wert der `cursor`-Eigenschaft auf `not-allowed` setzen. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index f56783e00f9..5a818255524 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 303311211d4..f7d76a25daf 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 2a72a101773..f48537b9476 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index a6b0501236d..986d9f34b65 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 18dbbe229c1..fae07771a31 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64ec9343769e8f85c1e17e05.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64ec9343769e8f85c1e17e05.md index a6953783b8b..8e38cc87213 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64ec9343769e8f85c1e17e05.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64ec9343769e8f85c1e17e05.md @@ -7,17 +7,17 @@ dashedName: step-24 # --description-- -Create a `div` element with the class of `task`. Utilize template strings to set the `id` attribute of the `div` to the `id` you destructured from the task data. +Erstelle ein `div`-Element mit der Klasse von `task`. Verwende Template-Strings, um das `id`-Attribut von `div` auf die `id` zu setzen, die du aus den Aufgabendaten destrukturiert hast. # --hints-- -You should create a `div` element with the class `task`. +Du solltest ein `div`-Element mit der Klasse `task` erstellen. ```js assert.match(code, /\s*<\/div>/) diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/german/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/german/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index d436209b274..fd73f157312 100644 --- a/curriculum/challenges/german/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/german/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/italian/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/italian/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 2135d0f5831..9a4c3ff82f2 100644 --- a/curriculum/challenges/italian/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/italian/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ When a Rectangle object is created, it should be initialized with `width` and `h - `get_area`: Returns area (`width * height`) - `get_perimeter`: Returns perimeter (`2 * width + 2 * height`) - `get_diagonal`: Returns diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: Returns a string that represents the shape using lines of "\*". The number of lines should be equal to the height and the number of "\*" in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: "Too big for picture.". +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Takes another shape (square or rectangle) as an argument. Returns the number of times the passed in shape could fit inside the shape (with no rotations). For instance, a rectangle with a width of 4 and a height of 8 could fit in two squares with sides of 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Square class The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index eef2ea57f8e..b4a60272ef1 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Ecco come puoi fare una richiesta `GET` con il metodo `fetch()`: fetch("url-goes-here") ``` -Fai una richiesta `GET` a questo URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -Dovresti usare il metodo `fetch()` per fare una richiesta `GET` a `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index c441a4b86b8..f5fa120a999 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -Dovresti usare il metodo `fetch()` per fare una richiesta `GET` a `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index 3e5444e8d98..f289bc99a5c 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Concatena un altro metodo `.then()` al metodo `.then()` esistente. Stavolta pass # --hints-- -Dovresti usare il metodo `fetch()` per fare una richiesta `GET` a `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index e6c6139a1b8..9074a96a24e 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Concatena `.catch()` all'ultimo `.then()`. Passagli una funzione callback con `e # --hints-- -Dovresti usare il metodo `fetch()` per fare una richiesta `GET` a `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index ef0cf71e606..e4d4ba16991 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 All'interno del template literal, crea un elemento `div` con l'`id` impostato su `index` dal metodo per array `.forEach()`. Ricordati di usare l'interpolazione di stringhe per farlo. -Inoltre, aggiungi una `class` di `user-card` al `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -Dovresti creare un elemento `div` con la classe `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index 76e495f5721..09e33fa4081 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Ora devi mostrare alcune informazioni sull'autore. Per prima cosa, mostra il nome dell'autore. -Crea un tag `h2` con `class` del valore di `author-name`. Poi, interpola `author` all'interno del tag `h2`. Questo è il nome dell'autore. +Create an `h2` tag with the `class` `"author-name"`. Poi, interpola `author` all'interno del tag `h2`. Questo è il nome dell'autore. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -L'elemento `h2` dovrebbe avere una classe impostata su `author-name` +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index c95877cf04e..00cc072e186 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Ora `authorDataArr` è uguale a `data`, che hai visualizzato nella console in precedenza. Visualizza nella console `authorDataArr` per averne conferma. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Usa la virgola per separare il testo da `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Usa la virgola per separare il testo da `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ Dovresti assegnare `data` alla variabile `authorDataArr` assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -Dovresti avere un console log con il testo `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -Dovresti usare la virgola per separare il testo `Author Data Array:` e `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index 0612c05e84e..1a975b9f828 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Ora crea un tag di immagine e dagli una `class` con il valore `user-img`. Usa l'interpolazione di stringhe per impostare l'attributo `src` su `image`, che hai destrutturato precedentemente. Imposta l'attributo `alt` su `author` seguito dal testo `avatar`. Assicurati che ci sia uno spazio tra la variabile `author` e la parola `avatar`, per esempio, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Usa l'interpolazione di stringhe per impostare l'attributo `src` su `image`, che hai destrutturato precedentemente. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -L'elemento `img` dovrebbe avere la classe `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index 788554d0e5b..a34cefa117e 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 La prossima cosa che mostrerai sono i dettagli biografici dell'autore. Puoi farlo con `bio`, che hai destrutturato precedentemente. -Aggiungi un elemento paragrafo con una `class` con il valore `bio`, quindi interpola `bio` all'interno dell'elemento paragrafo. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ Dovresti creare un elemento `p`. assert.exists(document.querySelector('p')); ``` -L'elemento `p` dovrebbe avere la classe `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index 0caf749024a..4c3bef94875 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Successivamente, aggiungi un link alla pagina dell'autore su freeCodeCamp News. -Aggiungi un elemento di ancoraggio con una `class` con il valore `author-link`, interpola `url` come valore dell'attributo `href` e imposta `target` su `_blank`. Per il testo dell'elemento di ancoraggio, interpola `author` seguito dal testo `'s author page`. Ad esempio, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ Dovresti creare un elemento di ancoraggio. assert.exists(document.querySelector('a')); ``` -L'elemento di ancoraggio dovrebbe avere la classe `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ Dovresti interpolare `url` come valore dell'attributo `href` dell'elemento di an assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -Dovresti impostare l'attributo `target` dell'elemento di ancoraggio su `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -Dovresti interpolare `author` seguito dal testo `'s author page` all'interno dell'elemento di ancoraggio. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index 38d31313c89..c65be8508bf 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Ricorda che nello step 1 hai selezionato il pulsante `Load More Authors` assegnandolo a `loadMoreBtn`. -Usa `addEventListener` per aggiungere un event listener `click` a `loadMoreBtn`. Inoltre, passa un riferimento alla funzione `fetchMoreAuthors` da eseguire ogni volta che il pulsante viene cliccato. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Inoltre, passa un riferimento alla funzione `fetchMoreAuthors` da eseguire ogni volta che il pulsante viene cliccato. Una volta fatto ciò, quando il pulsante viene cliccato si dovrebbero vedere altri 8 autori. @@ -21,7 +21,7 @@ Dovresti chiamare il metodo `addEventListener()` sulla variabile `loadMoreBtn`. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -L'event listener dovrebbe essere in ascolto per l'evento `click`. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index 90992324041..c73f36a6e29 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -Se questa condizione è soddisfatta, disabilita il pulsante impostando la sua proprietà `disabled` su `true`. Inoltre, imposta il `textContent` del pulsante su `No more data to load`. +Se questa condizione è soddisfatta, disabilita il pulsante impostando la sua proprietà `disabled` su `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ Dovresti impostare la proprietà `disabled` di `loadMoreBtn` su `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -Dovresti impostare il `textContent` di `loadMoreBtn` su `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index 8c452bc9e64..40b2d28b41c 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Non c'è molto spazio tra il nome e l'immagine di ogni autore e il resto dei dettagli sulla scheda. Una separazione darà alla scheda dell'autore una chiara gerarchia visuale. -Aggiungi un elemento `div` sopra la biografia dell'autore e dagli una `class` con il valore `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ Dovresti creare un elemento `div` prima dell'elemento `p`. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -L'elemento `div` dovrebbe avere l'attributo `class` con il valore `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index b09041444b1..720b2d0bf1b 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Alcune delle biografie degli autori sono più lunghe di altre. Per dare alle schede un aspetto uniforme, puoi estrarre i primi 50 caratteri di ciascuna e sostituire il resto con dei puntini di sospensione (...). Altrimenti, puoi mostrare l'intera biografia. +Alcune delle biografie degli autori sono più lunghe di altre. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Altrimenti, puoi mostrare l'intera biografia. All'interno dell'elemento paragrafo sostituisci `bio` con un operatore ternario. Per la condizione, controlla se la lunghezza di `bio` è superiore a 50. Se lo è, utilizza il metodo `.slice()` per estrarre i primi 50 caratteri da `bio` e aggiungere dei puntini di sospensione alla fine. Altrimenti mostra l'intera `bio`. @@ -31,7 +31,7 @@ Dovresti controllare se la lunghezza del testo di `bio` è maggiore di `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -Se il testo di `bio` è più lungo di `50` caratteri, dovresti estrarre i primi 50 caratteri con `slice()` e sostituire il resto con `...`. Non dimenticare che gli indici partono da zero. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Non dimenticare che gli indici partono da zero. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index 36e2dfc821c..c339fa2e3e6 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Infine, cosa succede se c'è un errore e i dati dell'autore non vengono caricati? Occorre mostrare un errore nell'interfaccia utente. È esattamente ciò a cui serve il metodo `.catch()` – gestire gli errori. -All'interno di `.catch()`, rimuovi `console.error()` e imposta l'`innerHTML` di `authorContainer` su un elemento `p` con la `class` con il valore `error-msg` e il testo `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ Dovresti accedere all'`innerHTML` di `authorContainer` e impostarlo su un elemen assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -L'elemento `p` dovrebbe avere la classe `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -L'elemento `p` dovrebbe avere il testo `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index 6967c2629cf..c96d14e9f9e 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -Ancora una cosa. Se continui a cliccare il pulsante `Load More Authors` finché non ci sono più dati da caricare e il testo cambia in `No more data to load`, il valore del cursore è ancora `pointer`. Perché invece non modificare il valore del cursore in `not-allowed`? +Ancora una cosa. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Perché invece non modificare il valore del cursore in `not-allowed`? -Accedi alla proprietà `style` del pulsante `Load More Authors` e imposta `cursor` su `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. E con questo la pagina degli autori è completa! @@ -27,7 +27,7 @@ Dovresti accedere a `cursor` dalla proprietà `style` tramite notazione con punt assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -Dovresti impostare il valore della proprietà `cursor` su `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index f56783e00f9..5a818255524 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 303311211d4..f7d76a25daf 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 2a72a101773..f48537b9476 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index a6b0501236d..986d9f34b65 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 28877ef405a..5c42e4fbe62 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/italian/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/italian/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index 1325f3900e8..106a89f38ff 100644 --- a/curriculum/challenges/italian/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/italian/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/japanese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/japanese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 2135d0f5831..9a4c3ff82f2 100644 --- a/curriculum/challenges/japanese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/japanese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ When a Rectangle object is created, it should be initialized with `width` and `h - `get_area`: Returns area (`width * height`) - `get_perimeter`: Returns perimeter (`2 * width + 2 * height`) - `get_diagonal`: Returns diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: Returns a string that represents the shape using lines of "\*". The number of lines should be equal to the height and the number of "\*" in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: "Too big for picture.". +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Takes another shape (square or rectangle) as an argument. Returns the number of times the passed in shape could fit inside the shape (with no rotations). For instance, a rectangle with a width of 4 and a height of 8 could fit in two squares with sides of 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Square class The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index b6816a3fd20..d5b4b560c88 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Here is how you can make a `GET` request with the `fetch()` method: fetch("url-goes-here") ``` -Make a `GET` request to this URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index 1862b54a3b9..e8f7304b417 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index fc28ea422b6..ebab324b18c 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Chain another `.then()` to the existing `.then()` method. This time, pass in `da # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index cf4f3b3fd9c..7793aca9717 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` a # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index 0764afeb790..f029b281c67 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use template interpolation to do this. -Also, add a `class` of `user-card` to the `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -You should create a `div` element with the class `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index 6d78055c771..b575baaf1e5 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you need to show some information about the author. First, show the author's name. -Create an `h2` tag with the `class` `author-name`. Then, interpolate `author` inside the `h2` tag. This is the author's name. +Create an `h2` tag with the `class` `"author-name"`. Then, interpolate `author` inside the `h2` tag. This is the author's name. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -Your `h2` element should have a class set to `author-name` +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index 88167fa9ad4..2ef2d866bee 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Now `authorDataArr` is the same as the `data` you logged to the console a while ago. Log `authorDataArr` to the console to confirm this. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ You should assign `data` to the `authorDataArr` variable assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -You should have a console log with the text `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -You should use comma to separate your `Author Data Array:` text and `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index 4b7cad7706d..e2f9a397fbc 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Now create an image tag and give it the `class` `user-img`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `avatar`. Make sure there is a space between the `author` variable and the word `avatar`, for example, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -Your `img` element should have the class `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index 1eef6b31025..db6e909eb05 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 The next thing you'll show are biographical details about the author. You can do this with `bio` that you destructured earlier. -Add a paragraph element with the `class` `bio`, then interpolate `bio` inside the paragraph element. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ You should create a `p` element. assert.exists(document.querySelector('p')); ``` -Your `p` element should have the class `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index 23b4f49ddb7..342f7bbd10d 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Next, add a link to the author's page on freeCodeCamp News. -Add an anchor element with the `class` `author-link`, interpolate `url` as the value for the `href` attribute, and set `target` to `_blank`. For the text of the anchor element, interpolate `author` followed by the text `'s author page`. For example, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ You should create an anchor element. assert.exists(document.querySelector('a')); ``` -Your anchor element should have the class `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ You should interpolate `url` as the value of your anchor's `href` attribute. assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -You should set the `target` attribute of your anchor element to `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -You should interpolate `author` followed by the text `'s author page` inside your anchor element. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index a80400b7544..9a70f705e76 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Remember that in step 1 you selected the `Load More Authors` button and assigned it to `loadMoreBtn`. -Use `addEventListener` to add a `click` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. After that, when you click the button you should see 8 more authors. @@ -21,7 +21,7 @@ You should call the `addEventListener()` method on your `loadMoreBtn` variable. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -Your event listener should listen for a `click` event. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index 43114466119..adda899e585 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `No more data to load`. +If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ You should set the `disabled` property of `loadMoreBtn` to `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -You should set the `textContent` of `loadMoreBtn` to `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index 21ca08cbc44..a9325f43ecb 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Next, there's not a lot of separation between each author's name and image, and the rest of the details on the card. A divider will give the author cards a clear visual hierarchy. -Add a `div` element above the author's bio and give it the `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ You should create a `div` element before your `p` element. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -Your `div` element should have the `class` set to `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index c1f18ceca78..205e3397370 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis (...). Otherwise, you can show the entire bio. +Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Otherwise, you can show the entire bio. Within the paragraph element, replace `bio` with a ternary operator. For the condition, check if the length of `bio` is greater than 50. If it is, use the `.slice()` method to extract the first 50 characters of `bio` and add an ellipsis at the end. Otherwise, show the full `bio`. @@ -31,7 +31,7 @@ You should check if the length of the `bio` text is greater than `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `...`. Don't forget that indexes are zero-based. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Don't forget that indexes are zero-based. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index cafd22fe71c..ec73d564637 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. -Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `error-msg` and text `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ You should access the `innerHTML` of `authorContainer` and set it to a `p` eleme assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -Your `p` element should have the class `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -Your `p` element should have the text `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index 6494e0f4fe3..eedcda11086 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -One more thing. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `No more data to load`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? +One more thing. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? -Access the `style` property of the `Load More Authors` button and set `cursor` to `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. With that, your author page is complete! @@ -27,7 +27,7 @@ You should access `cursor` from the `style` property with dot notation. assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -You should set the value of the `cursor` property to `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index f56783e00f9..5a818255524 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 303311211d4..f7d76a25daf 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 2a72a101773..f48537b9476 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index a6b0501236d..986d9f34b65 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 28877ef405a..5c42e4fbe62 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/japanese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/japanese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index e467482652b..210179b7d2b 100644 --- a/curriculum/challenges/japanese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/japanese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/korean/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/korean/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 2135d0f5831..9a4c3ff82f2 100644 --- a/curriculum/challenges/korean/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/korean/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ When a Rectangle object is created, it should be initialized with `width` and `h - `get_area`: Returns area (`width * height`) - `get_perimeter`: Returns perimeter (`2 * width + 2 * height`) - `get_diagonal`: Returns diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: Returns a string that represents the shape using lines of "\*". The number of lines should be equal to the height and the number of "\*" in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: "Too big for picture.". +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Takes another shape (square or rectangle) as an argument. Returns the number of times the passed in shape could fit inside the shape (with no rotations). For instance, a rectangle with a width of 4 and a height of 8 could fit in two squares with sides of 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Square class The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index b6816a3fd20..d5b4b560c88 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Here is how you can make a `GET` request with the `fetch()` method: fetch("url-goes-here") ``` -Make a `GET` request to this URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index 1862b54a3b9..e8f7304b417 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index fc28ea422b6..ebab324b18c 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Chain another `.then()` to the existing `.then()` method. This time, pass in `da # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index cf4f3b3fd9c..7793aca9717 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` a # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index 0764afeb790..f029b281c67 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use template interpolation to do this. -Also, add a `class` of `user-card` to the `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -You should create a `div` element with the class `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index 6d78055c771..b575baaf1e5 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you need to show some information about the author. First, show the author's name. -Create an `h2` tag with the `class` `author-name`. Then, interpolate `author` inside the `h2` tag. This is the author's name. +Create an `h2` tag with the `class` `"author-name"`. Then, interpolate `author` inside the `h2` tag. This is the author's name. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -Your `h2` element should have a class set to `author-name` +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index 88167fa9ad4..2ef2d866bee 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Now `authorDataArr` is the same as the `data` you logged to the console a while ago. Log `authorDataArr` to the console to confirm this. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ You should assign `data` to the `authorDataArr` variable assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -You should have a console log with the text `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -You should use comma to separate your `Author Data Array:` text and `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index 4b7cad7706d..e2f9a397fbc 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Now create an image tag and give it the `class` `user-img`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `avatar`. Make sure there is a space between the `author` variable and the word `avatar`, for example, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -Your `img` element should have the class `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index 1eef6b31025..db6e909eb05 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 The next thing you'll show are biographical details about the author. You can do this with `bio` that you destructured earlier. -Add a paragraph element with the `class` `bio`, then interpolate `bio` inside the paragraph element. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ You should create a `p` element. assert.exists(document.querySelector('p')); ``` -Your `p` element should have the class `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index 23b4f49ddb7..342f7bbd10d 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Next, add a link to the author's page on freeCodeCamp News. -Add an anchor element with the `class` `author-link`, interpolate `url` as the value for the `href` attribute, and set `target` to `_blank`. For the text of the anchor element, interpolate `author` followed by the text `'s author page`. For example, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ You should create an anchor element. assert.exists(document.querySelector('a')); ``` -Your anchor element should have the class `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ You should interpolate `url` as the value of your anchor's `href` attribute. assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -You should set the `target` attribute of your anchor element to `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -You should interpolate `author` followed by the text `'s author page` inside your anchor element. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index a80400b7544..9a70f705e76 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Remember that in step 1 you selected the `Load More Authors` button and assigned it to `loadMoreBtn`. -Use `addEventListener` to add a `click` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. After that, when you click the button you should see 8 more authors. @@ -21,7 +21,7 @@ You should call the `addEventListener()` method on your `loadMoreBtn` variable. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -Your event listener should listen for a `click` event. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index 43114466119..adda899e585 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `No more data to load`. +If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ You should set the `disabled` property of `loadMoreBtn` to `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -You should set the `textContent` of `loadMoreBtn` to `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index 21ca08cbc44..a9325f43ecb 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Next, there's not a lot of separation between each author's name and image, and the rest of the details on the card. A divider will give the author cards a clear visual hierarchy. -Add a `div` element above the author's bio and give it the `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ You should create a `div` element before your `p` element. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -Your `div` element should have the `class` set to `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index c1f18ceca78..205e3397370 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis (...). Otherwise, you can show the entire bio. +Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Otherwise, you can show the entire bio. Within the paragraph element, replace `bio` with a ternary operator. For the condition, check if the length of `bio` is greater than 50. If it is, use the `.slice()` method to extract the first 50 characters of `bio` and add an ellipsis at the end. Otherwise, show the full `bio`. @@ -31,7 +31,7 @@ You should check if the length of the `bio` text is greater than `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `...`. Don't forget that indexes are zero-based. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Don't forget that indexes are zero-based. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index cafd22fe71c..ec73d564637 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. -Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `error-msg` and text `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ You should access the `innerHTML` of `authorContainer` and set it to a `p` eleme assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -Your `p` element should have the class `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -Your `p` element should have the text `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index 6494e0f4fe3..eedcda11086 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -One more thing. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `No more data to load`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? +One more thing. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? -Access the `style` property of the `Load More Authors` button and set `cursor` to `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. With that, your author page is complete! @@ -27,7 +27,7 @@ You should access `cursor` from the `style` property with dot notation. assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -You should set the value of the `cursor` property to `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index f56783e00f9..5a818255524 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 303311211d4..f7d76a25daf 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 2a72a101773..f48537b9476 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index a6b0501236d..986d9f34b65 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 28877ef405a..5c42e4fbe62 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/korean/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/korean/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/korean/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index a95d3927542..2abd8b10dda 100644 --- a/curriculum/challenges/korean/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/korean/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/portuguese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/portuguese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 0db7c5b32ed..f763c353c80 100644 --- a/curriculum/challenges/portuguese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/portuguese/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ Quando um objeto de retângulo é criado, ele deve ser inicializado com atributo - `get_area`: retorna a área (`width * height`) - `get_perimeter`: retorna o perímetro (`2 * width + 2 * height`) - `get_diagonal`: retorna a diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: retorna uma string que representa a forma usando as linhas de "\*". O número de linhas deve ser igual à altura e o número de "\*" em cada linha deve ser igual à largura. Deve haver uma nova linha (`\n`) no final de cada linha. Se a largura ou altura for maior do que 50, é preciso retornar a string: "Too big for picture." (Muito grande para a imagem). +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. Deve haver uma nova linha (`\n`) no final de cada linha. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Pega outra forma (quadrado ou retângulo) como um argumento. Retorna o número de vezes que a forma passada como argumento poderia caber dentro da forma (sem rotações). Por exemplo, um retângulo com uma largura de 4 e uma altura de 8 poderia caber em dois quadrados com lados de 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Classe do quadrado The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index b356d1a77e1..b498f7e9c24 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Você pode fazer uma solicitação de `GET` com o método `fetch()` assim: fetch("url-goes-here") ``` -Faça uma solicitação de `GET` para este URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -Você deve usar o método `fetch()` para fazer uma solicitação de `GET` para `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index 56f5d7c1615..aced247fca5 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -Você deve usar o método `fetch()` para fazer uma solicitação de `GET` para `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index 69078d8783b..c7477b986bb 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Encadeie outro `.then()` ao método `.then()` existente. Desta vez, passe `data` # --hints-- -Você deve usar o método `fetch()` para fazer uma solicitação de `GET` para `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index 9a00383b110..e377ff705d9 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Encadeie `.catch()` ao último `.then()`. Passe uma função de callback com `er # --hints-- -Você deve usar o método `fetch()` para fazer uma solicitação de `GET` para `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index c6a086b0b6f..6ad0e5b24d6 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Dentro da string de template literals, crie um elemento `div` com o `id` definido como o `index` do método de array `.forEach()`. Lembre-se de usar a interpolação de templates para fazer isso. -Além disso, adicione uma `class` `user-card` na `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -Você deve criar uma `div` com a classe `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index 715dea4dd07..76acefa6acd 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Agora, você precisa mostrar algumas informações sobre o autor. Primeiro, mostre o nome do autor. -Crie uma tag `h2` com a `class` `author-name`. Em seguida, interpole `author` dentro da tag `h2`. Esse é o nome do autor. +Create an `h2` tag with the `class` `"author-name"`. Em seguida, interpole `author` dentro da tag `h2`. Esse é o nome do autor. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -O elemento `h2` deve ter uma classe definida como `author-name`. +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index 23969f68e8e..1852b46567a 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Agora, `authorDataArr` é o mesmo que `data`, já registrado no console há algum tempo. Registre `authorDataArr` no console com console.log() para confirmar isso. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Use a vírgula para separar o texto de `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Use a vírgula para separar o texto de `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ Você deve atribuir `data` à variável `authorDataArr`. assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -Você deve ter um registro do console com o texto `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -Você deve usar a vírgula para separar o texto `Author Data Array:` de `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index 115712edc25..d3141bf6b11 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Agora, crie uma tag de imagem e dê a ela a `class` `user-img`. Use a interpolação de template para definir o atributo `src` como sendo a `image` que você desestruturou anteriormente. Defina o atributo `alt` como `author` seguido pelo texto `avatar`. Certifique-se de que haja um espaço entre a variável `author` e a palavra `avatar`, por exemplo, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use a interpolação de template para definir o atributo `src` como sendo a `image` que você desestruturou anteriormente. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -O elemento `img` deve ter a classe `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index ebcc59793fa..d88f9cb4252 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 A próxima coisa que você mostrará são os detalhes biográficos sobre o autor. Você pode fazer isso com `bio`, que você desestruturou anteriormente. -Adicione um elemento de parágrafo com a `class` `bio` e, então, interpole a `bio` dentro do elemento do parágrafo. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ Você deve criar um elemento `p`. assert.exists(document.querySelector('p')); ``` -O elemento `p` deve ter a classe `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index e17fa4f3d14..22eb3558d68 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Em seguida, adicione um link para a página do autor no editorial do freeCodeCamp. -Adicione um elemento de âncora com a `class` `author-link`, interpole `url` como o valor para o atributo `href` e defina `target` como `_blank`. Para o texto do elemento de âncora, interpole `author` seguido pelo texto `'s author page`. Por exemplo, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ Você deve criar um elemento de âncora. assert.exists(document.querySelector('a')); ``` -O elemento de âncora deve ter a classe `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ Você deve interpolar `url` como o valor do atributo `href` do elemento de ânco assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -Você deve definir o atributo `target` do elemento de âncora como `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -Você deve interpolar `author` seguido pelo texto `'s author page` dentro do elemento de âncora. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index 48817fe5312..ce2fbf7d837 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Lembre-se de que, no passo 1, você selecionou o botão `Load More Authors` e o atribuiu a `loadMoreBtn`. -Use `addEventListener` para adicionar um "ouvinte" de evento de `click` para `loadMoreBtn`. Além disso, passe uma referência para a função `fetchMoreAuthors` para que seja executada sempre que o botão for clicado. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Além disso, passe uma referência para a função `fetchMoreAuthors` para que seja executada sempre que o botão for clicado. Depois disso, quando você clicar no botão você deverá ver mais 8 autores. @@ -21,7 +21,7 @@ Você deve chamar o método `addEventListener()` na variável `loadMoreBtn`. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -O "ouvinte" de evento deve "ouvir" o evento de `click`. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index 82286174744..b83aa1f9f23 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -Se essa condição for atendida, desabilite o botão definindo a propriedade `disabled` como `true`. Além disso, defina o `textContent` do botão como `No more data to load`. +Se essa condição for atendida, desabilite o botão definindo a propriedade `disabled` como `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ Você deve definir a propriedade `disabled` de `loadMoreBtn` como `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -Você deve definir o `textContent` do botão `loadMoreBtn` como `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index 315380beece..4ca0720750b 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Em seguida, não há muita separação entre o nome, a imagem de cada autor e o resto dos detalhes do card. Um divisor dará aos cards de autor uma hierarquia visual clara. -Adicione um elemento `div` acima da biografia do autor e dê a ele a `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ Você deve criar um elemento `div` antes do elemento `p`. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -O elemento `div` deve ter a `class` definida como `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index bc0234d8475..89f62ff1cd4 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Alguns biografias dos autores são muito mais longas do que as outras. Para dar aos cards um visual uniforme, você pode extrair os primeiros 50 caracteres de cada um e substituir o resto por reticências (...). Caso contrário, você pode mostrar a biografia inteira. +Alguns biografias dos autores são muito mais longas do que as outras. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Caso contrário, você pode mostrar a biografia inteira. Dentro do elemento do parágrafo, substitua `bio` por um operador ternário. Para a condição, verifique se o comprimento de `bio` é maior que 50. Se for, use o método `.slice()` para extrair os primeiros 50 caracteres de `bio` e adicione reticências ao final. Caso contrário, mostre a `bio` completa. @@ -31,7 +31,7 @@ Você deve verificar se o comprimento do texto de `bio` é maior que `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -Se o texto de `bio` for maior que `50` caracteres, você deve extrair os primeiros 50 caracteres com `slice()` e substituir o resto por `...`. Não se esqueça de que os índices começam de zero. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Não se esqueça de que os índices começam de zero. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index d81aea8fd81..21a131b95fa 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Por fim, o que você faria se houvesse um erro e os dados do autor falhassem ao carregar? Então, precisamos mostrar um erro na interface do usuário. É exatamente para isso que o método `.catch()` serve – para o tratamento dos erros. -Dentro do `.catch()`, remova `console.error()` e defina o `innerHTML` de `authorContainer` como um elemento `p` com a `class` `error-msg` e o texto `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ Você deve acessar o `innerHTML` de `authorContainer` e defini-lo como um elemen assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -O elemento `p` deve ter a classe `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -O elemento `p` deve ter o texto `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index 3bef45967bc..b969d6c6583 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -Mais uma coisa. Se você continuar clicando no botão `Load More Authors` até que não haja mais dados para carregar e que o texto se altere para `No more data to load`, o valor do cursor ainda será um `pointer`. Por que não mudar o valor do cursor para `not-allowed` em vez disso? +Mais uma coisa. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Por que não mudar o valor do cursor para `not-allowed` em vez disso? -Acessar a propriedade `style` do botão `Load More Authors` e defina `cursor` como `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. Com isso, a página dos autores está completa! @@ -27,7 +27,7 @@ Você deve acessar `cursor` na propriedade `style` com notação de ponto. assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -Você deve definir o valor da propriedade `cursor` para `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index c8521c29fec..84b5f834df6 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index bda7d0bfc93..81fae40cf9f 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index ad2485eca74..b267905f0ea 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index aa774967ba1..b8d09e3de52 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index 46585108709..8ecac8e19cb 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index c52e972cf4a..4d3bd3550ce 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 6a87ad55601..4667e9fcb78 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 3476f3eecd0..c18b6e28503 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 9ec097f6ea0..104797cb5b3 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index 15355cc14c6..1c0f23f8641 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index a1be2e1ebd6..d34e25c42c8 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 97e85369136..15b3afd16e5 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index 7412091c032..fc8e46b09ad 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index ed9dbe21d31..bd14425f246 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 6fde6d7179a..93e92afed66 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index 8456d0a1296..907ac71897a 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 0a484b91c04..57749364429 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index e284ef6e045..cbcad59ec1c 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index 4fdb712fe9b..72d6fb81203 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index b82acbad17c..da962928d26 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index fad734cc947..4e6981997c0 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index e1c169d9880..eef5ddabb4f 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 508e870a797..77f7225d3c8 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index 1da022b780a..c5b04b1deee 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index af0e23ac018..f5c48b3bcbc 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index eecedb5e057..87f5f299cde 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 5282c2adbc9..484f55180d0 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index d0e576f2431..eaa3a47de18 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index 4c09c8915dc..76d35a91f60 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index 3746bd2cd33..21345d923a3 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 500d20e207c..30e54ff1bf3 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index 796dcb7ff26..7cdc033e3a0 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index ae001fb6585..7426c7d84cd 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index e96eabb0e54..c996a6bd9cb 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index 0a067391bdc..87867003356 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 22a6934b63d..ce0a25ba22d 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index 7ad65d488a4..3ab86ebc8a2 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 1b9e64eed4d..20fab5789f7 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index 1cc5e875233..084be7383a4 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index 1f01eecccd6..529a6e9349f 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index e90c962c17a..755d88644be 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index 078ee3c3cd4..231190c7925 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 877c1da4dab..8ce57329df6 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 6a93d114ab7..0f99b532ad9 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index 0671eaa02e5..53840e4f762 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index bf4c8733442..89b60c59216 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index ecb4b262078..358280097df 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index f1e85aedeb5..344846445b0 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index 09527a5d48c..ddfcf371631 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index e50a4e293bc..24c0e30e7dc 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a2352f2feec..b972a15859d 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 9045afa4a8e..e34f4590695 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index 687d147661a..d956db5a37c 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 2867ede7e73..caf687a1a44 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index 9b1ff3c004a..78fd8b258f6 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 31db30e3096..3ccc5863123 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 790a8323591..9cbb6602c10 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index 6e00f60e215..49dbd4da046 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index bc489691691..47f2dfbb894 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 30848398156..907d9236103 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index bd6a0cce753..34d00374187 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 3c8d41e8011..0bd177047ce 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 4a6e2658a3e..28c938e04c8 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 8bae462bc1b..f015598c9af 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 9f940d27925..32ff5ee1788 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index f069413ab0a..59242a1c672 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 789f188db07..a823595bf37 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index 81e6ca7508b..fe7cef41c9f 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 3f710c2eee4..a9fd6f97bcf 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index c8d04e4ed7f..58196ddcfe6 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 0c760d5114a..e2f6d074903 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index ad721ed2bc0..9d78e68b9ec 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index 7f7029589c6..5d567df332d 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 9c09b5b4408..e5ac521cd71 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index 0ace4672c70..31464b0fb6c 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index 98a3f1ba7a9..5e853c63d90 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index a12bca26cd3..f13fce8b55d 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index 53e79ce7ecb..80e1c58bcc3 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index c7729f182f6..8fe8b95bdbc 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 0958cc42bd1..9024b7dd120 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index 7ca146da18e..5040fdda5db 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 8c6d4b61b9d..8cec8fc4069 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 5e6522d6932..0ae9f02f549 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 3e648723cd0..0b57a4e3d1a 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index 7bbea14ef5d..e48f6098af0 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/portuguese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/portuguese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index 0e9eee55341..5634b6a76c4 100644 --- a/curriculum/challenges/portuguese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/portuguese/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/swahili/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/swahili/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index 2135d0f5831..9a4c3ff82f2 100644 --- a/curriculum/challenges/swahili/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/swahili/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ When a Rectangle object is created, it should be initialized with `width` and `h - `get_area`: Returns area (`width * height`) - `get_perimeter`: Returns perimeter (`2 * width + 2 * height`) - `get_diagonal`: Returns diagonal (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: Returns a string that represents the shape using lines of "\*". The number of lines should be equal to the height and the number of "\*" in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: "Too big for picture.". +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. There should be a new line (`\n`) at the end of each line. If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: Takes another shape (square or rectangle) as an argument. Returns the number of times the passed in shape could fit inside the shape (with no rotations). For instance, a rectangle with a width of 4 and a height of 8 could fit in two squares with sides of 4. -Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `Rectangle(width=5, height=10)` +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Square class The `Square` class should be a subclass of `Rectangle`. When a `Square` object is created, a single side length is passed in. The `__init__` method should store the side length in both the `width` and `height` attributes from the `Rectangle` class. -The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `Square(side=9)` +The `Square` class should be able to access the `Rectangle` class methods but should also contain a `set_side` method. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Additionally, the `set_width` and `set_height` methods on the `Square` class should set both the width and height. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Rectangle(3, 6)` should be `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -The string representation of `Square(5)` should be `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -The `.get_picture()` method should return the string `Too big for picture.` if the `width` or `height` attributes are larger than `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index 86cb707067b..d6b4b53147d 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Here is how you can make a `GET` request with the `fetch()` method: fetch("url-goes-here") ``` -Make a `GET` request to this URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index 71eca97e720..7bfeb32feb4 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index e9046cb0063..8d93b546782 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Chain another `.then()` to the existing `.then()` method. This time, pass in `da # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index a029c9566a4..2cd8936c303 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` a # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index dc097d3b638..c5c4257b28f 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use template interpolation to do this. -Also, add a `class` of `user-card` to the `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -You should create a `div` element with the class `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index 0ed42891955..e9c07495e49 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you need to show some information about the author. First, show the author's name. -Create an `h2` tag with the `class` `author-name`. Then, interpolate `author` inside the `h2` tag. This is the author's name. +Create an `h2` tag with the `class` `"author-name"`. Then, interpolate `author` inside the `h2` tag. This is the author's name. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -Your `h2` element should have a class set to `author-name` +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index 085730d6af6..eba22758a8c 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Now `authorDataArr` is the same as the `data` you logged to the console a while ago. Log `authorDataArr` to the console to confirm this. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ You should assign `data` to the `authorDataArr` variable assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -You should have a console log with the text `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -You should use comma to separate your `Author Data Array:` text and `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index ff2cdcc4814..7d39bcc3d5c 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Now create an image tag and give it the `class` `user-img`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `avatar`. Make sure there is a space between the `author` variable and the word `avatar`, for example, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -Your `img` element should have the class `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index e75a64d1363..e751281728e 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 The next thing you'll show are biographical details about the author. You can do this with `bio` that you destructured earlier. -Add a paragraph element with the `class` `bio`, then interpolate `bio` inside the paragraph element. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ You should create a `p` element. assert.exists(document.querySelector('p')); ``` -Your `p` element should have the class `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index a16c6b9e97e..0fcf9fe4fdd 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Next, add a link to the author's page on freeCodeCamp News. -Add an anchor element with the `class` `author-link`, interpolate `url` as the value for the `href` attribute, and set `target` to `_blank`. For the text of the anchor element, interpolate `author` followed by the text `'s author page`. For example, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ You should create an anchor element. assert.exists(document.querySelector('a')); ``` -Your anchor element should have the class `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ You should interpolate `url` as the value of your anchor's `href` attribute. assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -You should set the `target` attribute of your anchor element to `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -You should interpolate `author` followed by the text `'s author page` inside your anchor element. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index ddb61ba1c50..042f1459cf7 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Remember that in step 1 you selected the `Load More Authors` button and assigned it to `loadMoreBtn`. -Use `addEventListener` to add a `click` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. After that, when you click the button you should see 8 more authors. @@ -21,7 +21,7 @@ You should call the `addEventListener()` method on your `loadMoreBtn` variable. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -Your event listener should listen for a `click` event. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index 0e0bdf080bf..832efc6e30b 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `No more data to load`. +If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ You should set the `disabled` property of `loadMoreBtn` to `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -You should set the `textContent` of `loadMoreBtn` to `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index 9818f14dfd7..34f7ad1bcb7 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Next, there's not a lot of separation between each author's name and image, and the rest of the details on the card. A divider will give the author cards a clear visual hierarchy. -Add a `div` element above the author's bio and give it the `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ You should create a `div` element before your `p` element. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -Your `div` element should have the `class` set to `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index 96328ea4014..271f5b8b681 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis (...). Otherwise, you can show the entire bio. +Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Otherwise, you can show the entire bio. Within the paragraph element, replace `bio` with a ternary operator. For the condition, check if the length of `bio` is greater than 50. If it is, use the `.slice()` method to extract the first 50 characters of `bio` and add an ellipsis at the end. Otherwise, show the full `bio`. @@ -31,7 +31,7 @@ You should check if the length of the `bio` text is greater than `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `...`. Don't forget that indexes are zero-based. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Don't forget that indexes are zero-based. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index f3ecca9b5c9..d73820f3c23 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. -Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `error-msg` and text `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ You should access the `innerHTML` of `authorContainer` and set it to a `p` eleme assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -Your `p` element should have the class `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -Your `p` element should have the text `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index 0aca05166aa..fa59afbac29 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -One more thing. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `No more data to load`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? +One more thing. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? -Access the `style` property of the `Load More Authors` button and set `cursor` to `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. With that, your author page is complete! @@ -27,7 +27,7 @@ You should access `cursor` from the `style` property with dot notation. assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -You should set the value of the `cursor` property to `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index f56783e00f9..5a818255524 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 303311211d4..f7d76a25daf 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 2a72a101773..f48537b9476 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index a6b0501236d..986d9f34b65 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 28877ef405a..5c42e4fbe62 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/swahili/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/swahili/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/swahili/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index a95d3927542..2abd8b10dda 100644 --- a/curriculum/challenges/swahili/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/swahili/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents-- diff --git a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md index d969caaaa9d..3fa6b6857b4 100644 --- a/curriculum/challenges/ukrainian/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md +++ b/curriculum/challenges/ukrainian/07-scientific-computing-with-python/build-a-polygon-area-calculator-project/polygon-area-calculator.md @@ -19,16 +19,16 @@ dashedName: build-a-polygon-area-calculator-project - `get_area`: повертає площу (`width * height`) - `get_perimeter`: повертає периметр (`2 * width + 2 * height`) - `get_diagonal`: повертає діагональ (`(width ** 2 + height ** 2) ** .5`) -- `get_picture`: повертає рядок, який представляє фігуру лініями «\*». Кількість ліній повинна дорівнювати висоті, а кількість «\*» у кожному рядку повинна дорівнювати ширині. Наприкінці кожного рядка має бути новий рядок (`\n`). Якщо ширина або висота більші за 50, то має повернутись рядок «Too big for picture.». +- `get_picture`: Returns a string that represents the shape using lines of '\*'. The number of lines should be equal to the height and the number of '\*' in each line should be equal to the width. Наприкінці кожного рядка має бути новий рядок (`\n`). If the width or height is larger than 50, this should return the string: `'Too big for picture.'`. - `get_amount_inside`: приймає іншу фігуру (квадрат чи трикутник) як аргумент. Повертає ту кількість разів, скільки передана фігура може поміститися у фігурі (без обертання). Наприклад, прямокутник з шириною 4 і висотою 8 може вмістити два квадрати зі сторонами 4. -Додатково, якщо екземпляр класу `Rectangle` представлений як рядок, то він має виглядати так: `Rectangle(width=5, height=10)`. +Additionally, if an instance of a `Rectangle` is represented as a string, it should look like: `'Rectangle(width=5, height=10)'`. ## Клас Square Клас `Square` має бути підкласом класу `Rectangle`. Коли ви створюєте об’єкт `Square`, передається довжина однієї сторони. Метод `__init__` має зберігати довжину сторони в атрибутах `width` та `height` з класу `Rectangle`. -Клас `Square` повинен мати доступ до методів класу `Rectangle`, але також повинен містити метод `set_side`. Якщо екземпляр класу `Square` представлений у вигляді рядка, то він має виглядати так: `Square(side=9)`. +Клас `Square` повинен мати доступ до методів класу `Rectangle`, але також повинен містити метод `set_side`. If an instance of a `Square` is represented as a string, it should look like: `'Square(side=9)'`. Додатково, методи `set_width` та `set_height` на класі `Square` мають встановити як ширину, так і висоту. @@ -180,7 +180,7 @@ t.result.wasSuccessful() }) ``` -Рядковим представленням `Rectangle(3, 6)` має бути `Rectangle(width=3, height=6)`. +The string representation of `Rectangle(3, 6)` should be `'Rectangle(width=3, height=6)'`. ```js ({ @@ -215,7 +215,7 @@ t.result.wasSuccessful() }) ``` -Рядковим представленням `Square(5)` має бути `Square(side=5)`. +The string representation of `Square(5)` should be `'Square(side=5)'`. ```js ({ @@ -646,7 +646,7 @@ t.result.wasSuccessful() }) ``` -Метод `.get_picture()` має повернути рядок `Too big for picture.`, якщо атрибути `width` або `height` більші за `50`. +The `.get_picture()` method should return the string `'Too big for picture.'` if the `width` or `height` attributes are larger than `50`. ```js ({ diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md index 7f011d1a30e..c6edec06ca2 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da3c6b6fbd742bff6ee40.md @@ -15,11 +15,11 @@ Here is how you can make a `GET` request with the `fetch()` method: fetch("url-goes-here") ``` -Make a `GET` request to this URL: `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. Don't terminate your code with a semicolon yet. +Make a `GET` request to this URL: `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. Don't terminate your code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md index 9ee29f08e05..038f3bc669a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da42481d90c4314c99e94.md @@ -24,7 +24,7 @@ Again, don't terminate the code with a semicolon yet. # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md index faf98e764e1..ef312b02c76 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da4b16937be43ba24c63d.md @@ -14,7 +14,7 @@ Chain another `.then()` to the existing `.then()` method. This time, pass in `da # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md index 55156e4dee7..616f01047fb 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da51a9810e74411262fcc.md @@ -15,7 +15,7 @@ Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` a # --hints-- -You should use the `fetch()` method to make a `GET` request to `https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json`. +You should use the `fetch()` method to make a `GET` request to `"https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json"`. ```js assert.match(code, /fetch\(\s*('|"|`)https:\/\/cdn\.freecodecamp\.org\/curriculum\/news\-author\-page\/authors\.json\1\s*\)/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md index c6988fead5b..9bdd5fd9854 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da6dcb6e4c9463d54c75b.md @@ -9,11 +9,11 @@ dashedName: step-12 Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use template interpolation to do this. -Also, add a `class` of `user-card` to the `div`. +Also, add a `class` of `"user-card"` to the `div`. # --hints-- -You should create a `div` element with the class `user-card`. +You should create a `div` element with the class `"user-card"`. ```js displayAuthors([{author: "Kolade"}]); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md index f87732263e5..64b532067aa 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da7071d0d45467cd59977.md @@ -9,7 +9,7 @@ dashedName: step-13 Now you need to show some information about the author. First, show the author's name. -Create an `h2` tag with the `class` `author-name`. Then, interpolate `author` inside the `h2` tag. This is the author's name. +Create an `h2` tag with the `class` `"author-name"`. Then, interpolate `author` inside the `h2` tag. This is the author's name. # --hints-- @@ -21,7 +21,7 @@ displayAuthors([{author: "Kolade"}]); assert.exists(document.querySelector('#author-container > div > h2')); ``` -Your `h2` element should have a class set to `author-name` +Your `h2` element should have a class set to `"author-name"` ```js displayAuthors([{name: "Jane", height: 12}]) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md index c7dfb94fc93..4aa0bee82b5 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da791d0c34a472b8d15b6.md @@ -9,7 +9,7 @@ dashedName: step-15 Now `authorDataArr` is the same as the `data` you logged to the console a while ago. Log `authorDataArr` to the console to confirm this. -Inside your `console.log()` statement, add the text `Author Data Array:` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. +Inside your `console.log()` statement, add the text `"Author Data Array:"` as the first argument and `authorDataArr` as the second argument. Use comma to separate the text from `authorDataArr`. # --hints-- @@ -19,13 +19,13 @@ You should assign `data` to the `authorDataArr` variable assert.match(code, /authorDataArr\s*=\s*data\s*;?/) ``` -You should have a console log with the text `Author Data Array:`. +You should have a console log with the text `"Author Data Array:"`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1/) ``` -You should use comma to separate your `Author Data Array:` text and `authorDataArr`. +You should use comma to separate your `"Author Data Array:"` text and `authorDataArr`. ```js assert.match(code, /console\.log\(\s*("|'|`)Author\s+Data\s+Array:\s*\1\s*,/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md index 616c641ae95..01d2d13cf0f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da803d9892447d059804e.md @@ -7,7 +7,7 @@ dashedName: step-17 # --description-- -Now create an image tag and give it the `class` `user-img`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `avatar`. Make sure there is a space between the `author` variable and the word `avatar`, for example, `Quincy Larson avatar`. +Now create an image tag and give it the `class` `"user-img"`. Use template interpolation to set the `src` attribute to `image` you destructured earlier. Set the `alt` attribute to `author` followed by the text `"avatar"`. Make sure there is a space between the `author` variable and the word `"avatar"`, for example, `"Quincy Larson avatar"`. # --hints-- @@ -29,7 +29,7 @@ const retryingTest = (test, message, tries = 20) => { () => retryingTest(() => document.querySelector('img'), "'img' element not found"); ``` -Елемент `img` повинен мати клас `user-img`. +Your `img` element should have the class `"user-img"`. ```js assert.include(document.querySelector('img')?.className, "user-img"); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md index 142c1561c4b..282ae6b3eb3 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da836581c254815f785fe.md @@ -9,7 +9,7 @@ dashedName: step-18 The next thing you'll show are biographical details about the author. You can do this with `bio` that you destructured earlier. -Add a paragraph element with the `class` `bio`, then interpolate `bio` inside the paragraph element. +Add a paragraph element with the `class` `"bio"`, then interpolate `bio` inside the paragraph element. # --hints-- @@ -20,7 +20,7 @@ You should create a `p` element. assert.exists(document.querySelector('p')); ``` -Елемент `p` повинен мати клас `bio` +Your `p` element should have the class `"bio"` ```js assert.include(document.querySelector('p')?.className, 'bio'); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md index 7bbac5b529f..6255d80afd9 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da86294fd9f485d3c2bf0.md @@ -9,7 +9,7 @@ dashedName: step-19 Next, add a link to the author's page on freeCodeCamp News. -Add an anchor element with the `class` `author-link`, interpolate `url` as the value for the `href` attribute, and set `target` to `_blank`. For the text of the anchor element, interpolate `author` followed by the text `'s author page`. For example, `Quincy Larson's author page`. +Add an anchor element with the `class` `"author-link"`, interpolate `url` as the value for the `href` attribute, and set `target` to `"_blank"`. For the text of the anchor element, interpolate `author` followed by the text `"'s author page"`. For example, `"Quincy Larson's author page"`. # --hints-- @@ -19,7 +19,7 @@ You should create an anchor element. assert.exists(document.querySelector('a')); ``` -Елемент посилання повинен мати клас `author-link`. +Your anchor element should have the class `"author-link"`. ```js assert.include(document.querySelector('a')?.className, "author-link"); @@ -31,13 +31,13 @@ You should interpolate `url` as the value of your anchor's `href` attribute. assert.equal(document.querySelector('a')?.getAttribute('href'), authorDataArr[0].url); ``` -You should set the `target` attribute of your anchor element to `_blank`. +You should set the `target` attribute of your anchor element to `"_blank"`. ```js assert.equal(document.querySelector('a')?.getAttribute('target'), '_blank'); ``` -You should interpolate `author` followed by the text `'s author page` inside your anchor element. +You should interpolate `author` followed by the text `"'s author page"` inside your anchor element. ```js assert.equal(document.querySelector('a')?.textContent.trim(), `${authorDataArr[0].author}'s author page`); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md index bc97be8bfaa..ef018eb18fb 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641da9aceb788e49a73ebcc9.md @@ -9,7 +9,7 @@ dashedName: step-23 Remember that in step 1 you selected the `Load More Authors` button and assigned it to `loadMoreBtn`. -Use `addEventListener` to add a `click` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. +Use `addEventListener` to add a `"click"` event listener to `loadMoreBtn`. Also, pass in a reference to the `fetchMoreAuthors` function to run whenever the button is clicked. After that, when you click the button you should see 8 more authors. @@ -21,7 +21,7 @@ You should call the `addEventListener()` method on your `loadMoreBtn` variable. assert.match(code, /loadMoreBtn\.addEventListener\(/) ``` -Your event listener should listen for a `click` event. +Your event listener should listen for a `"click"` event. ```js assert.match(code, /loadMoreBtn\.addEventListener\(\s*('|"|`)click\1/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md index bb4858372b6..73e5d0b871e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa5ea050f24a7cade6e6.md @@ -7,7 +7,7 @@ dashedName: step-25 # --description-- -If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `No more data to load`. +If this condition is met, disable the button by setting its `disabled` property to `true`. Also, set the `textContent` of the button to `"No more data to load"`. # --hints-- @@ -17,7 +17,7 @@ You should set the `disabled` property of `loadMoreBtn` to `true`. assert.match(code, /loadMoreBtn\.disabled\s*=\s*true\s*;?/) ``` -You should set the `textContent` of `loadMoreBtn` to `No more data to load`. +You should set the `textContent` of `loadMoreBtn` to `"No more data to load"`. ```js assert.match(code, /loadMoreBtn\.textContent\s*=\s*('|"|`)No\s+more\s+data\s+to\s+load\1\s*;?/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md index 78a14c5d195..e80b772d58b 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daa8c2c3e364ac3650b37.md @@ -9,7 +9,7 @@ dashedName: step-26 Next, there's not a lot of separation between each author's name and image, and the rest of the details on the card. A divider will give the author cards a clear visual hierarchy. -Add a `div` element above the author's bio and give it the `class` `purple-divider`. +Add a `div` element above the author's bio and give it the `class` `"purple-divider"`. # --hints-- @@ -19,7 +19,7 @@ You should create a `div` element before your `p` element. assert.equal(document.querySelector('p')?.previousElementSibling?.tagName, 'DIV'); ``` -Елемент `div` повинен мати `class` зі значенням `purple-divider`. +Your `div` element should have the `class` set to `"purple-divider"`. ```js assert.include(document.querySelector('p')?.previousElementSibling?.className, 'purple-divider'); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md index ad7c19e67ac..d1b57838c9e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daabed8d0584b1150c953.md @@ -7,7 +7,7 @@ dashedName: step-27 # --description-- -Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis (...). Otherwise, you can show the entire bio. +Some of the author bios are much longer than others. To give the cards a uniform look, you can extract the first 50 characters of each one and replace the rest with an ellipsis `("...")`. Otherwise, you can show the entire bio. Within the paragraph element, replace `bio` with a ternary operator. For the condition, check if the length of `bio` is greater than 50. If it is, use the `.slice()` method to extract the first 50 characters of `bio` and add an ellipsis at the end. Otherwise, show the full `bio`. @@ -31,7 +31,7 @@ You should check if the length of the `bio` text is greater than `50`. assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50/) ``` -If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `...`. Don't forget that indexes are zero-based. +If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `"..."`. Don't forget that indexes are zero-based. ```js assert.match(code, /\s*\$\{\s*bio\.length\s*>\s*50\s*\?\s*(?:bio\.slice\(\s*0\s*,\s*50\s*\)\s*\+\s*("|')\.\.\.\2|`\$\{\s*bio\.slice\(\s*0\s*,\s*50\s*\)\s*\}\.\.\.`)\s*:/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md index 14147887b14..f4642faaeae 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641daae5e18eae4b562633e4.md @@ -9,7 +9,7 @@ dashedName: step-28 Finally, what if there's an error and the author data fail to load? Then we need to show an error in the UI. That's exactly what the `.catch()` method is for – handling errors. -Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `error-msg` and text `There was an error loading the authors`. +Inside the `.catch()`, remove the `console.error()` and set the `innerHTML` of the `authorContainer` to a `p` element with the `class` `"error-msg"` and text `"There was an error loading the authors"`. # --hints-- @@ -26,13 +26,13 @@ You should access the `innerHTML` of `authorContainer` and set it to a `p` eleme assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*.*<\/p>\s*\1/) ``` -Елемент `p` повинен мати клас `error-msg`. +Your `p` element should have the class `"error-msg"`. ```js assert.match(code, /(`|"|')\s*/) ``` -Your `p` element should have the text `There was an error loading the authors`. +Your `p` element should have the text `"There was an error loading the authors"`. ```js assert.match(code, /(`|"|')There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md index f21635e346a..1dc890d55aa 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-fetch-and-promises-by-building-an-fcc-authors-page/641dab13c1b6f14b9828e6b1.md @@ -7,9 +7,9 @@ dashedName: step-29 # --description-- -One more thing. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `No more data to load`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? +One more thing. If you keep clicking the `Load More Authors` button until there's no more data to load and the text changes to `"No more data to load"`, the cursor value is still `pointer`. Why not change the cursor value to `not-allowed` instead? -Access the `style` property of the `Load More Authors` button and set `cursor` to `not-allowed`. +Access the `style` property of the `Load More Authors` button and set `cursor` to `"not-allowed"`. With that, your author page is complete! @@ -27,7 +27,7 @@ You should access `cursor` from the `style` property with dot notation. assert.match(code, /loadMoreBtn\.style\.cursor/) ``` -You should set the value of the `cursor` property to `not-allowed`. +You should set the value of the `cursor` property to `"not-allowed"`. ```js assert.match(code, /loadMoreBtn\.style\.cursor\s*=\s*('|"|`)not\-allowed\1\s*;?/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index ea938883a6d..f17d77b4f51 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 7ad19036d5c..81e2a926661 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index d6b270f8d83..95b478bd0b0 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index fc3853e0f9f..85aecc4759f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index e0c2ff4517d..b2c8cf52132 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index 9542bb0ae4b..2b39892aa49 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index 8d90b2e7567..649210ed0c4 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index 584c0120446..597169d8313 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 912088799f4..ddacc9afa07 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index d6b340e5910..35201a3844f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 2927aa25e15..e896fffa36c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 8c47159e369..86f3a07eff9 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index dfa712b747e..2b38e6810aa 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 50bb9396457..329eb08032e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index 1934be67533..6fdc512717f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index be95a9ed587..675d2d1ac9a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5691cc79db6..885e0812d9c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 0bc62245d07..46893f42ae3 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index fd5e074f80b..952f1a684b2 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 14d3e8fa8f3..46f642df6d4 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index 5f6bbcc31bc..d3f5d929de5 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 18d20539301..2e6df26675b 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index 9a666bc6de2..73ac7563b4d 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ce28b2e7ee8..81f77b77181 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index ee9c83ba8d9..5658c5effed 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 6389d1b1bb3..85e6b3876ac 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index 574dd40d018..6ed32a373b1 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 860719bde4d..59116809b05 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index a8d5e05af40..53cbaa05520 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index a92a271963d..1b49dc4a3c0 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 715d320b1fc..7714bd78830 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index d509d198ab4..123a08d7a47 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 71ddeb1f7d1..ca775be366d 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index d36c032c925..f1edfa72946 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index b2225896955..3b112bf5e72 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 4d164ba6adb..5b39a9a23f7 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index 0f59ccb4072..2623637b1f3 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index 4c086b317ea..9ce0a90a6d2 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index f4fd39bde3b..5e8939b2300 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index d263bdf54b3..5dc6302cb8c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 69be38df91b..3458ebe6f0a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index e0e1e7204cc..87a00b8e260 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index 545d5ddcd3d..93fc3dc3439 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 01c426e728d..d63b58fa436 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index b024ff14621..d51fad37b7d 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index 0aa52253c4b..010a3764d7b 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index f91647c50f2..6886e34c5e2 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index f19e076fca6..65dda0afe2d 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index dc6d63565b3..b7dcfabaf4f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index a68f265ff2d..900afc11cd5 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 68c6175ebbf..19261097e9a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index 52d9b382e66..f7fc4abdb40 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 28877ef405a..5c42e4fbe62 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index d7376bb2d78..2d0cc1b4a9e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index 7fbf61939fb..cc8f9d72c1b 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index 9c4c2d9490f..6fe94f6fb27 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index 2d4ad2dc17c..3a3346c25ce 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 882f5359853..0946ca9960a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 7fd53772aa9..dafd4eb2025 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index 00176126504..a9ea0af3518 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index 26fa7e4c5ab..83b992d6b47 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 1110cb36177..2c30a0e9ec2 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 0f20baeab9a..23403e64740 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index d13a7eb5ed3..a8a720b5e2e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index 6daf63db3d9..ed90382eee5 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 6428738ce89..cac74353f2a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index e647743e443..89bda4b710d 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index 7739d08bdfc..da669da836f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index be957205c33..2c1b1d14dda 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index d2904f5090e..66bada0bfac 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index b5af6d28b69..d91a9fc773e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index fd993364550..da382f6e848 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 051e7974e36..3df55b53280 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 95438a380ba..81ca70ac951 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index f60366890bc..50d5f6de007 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 1bcb82deb8f..ab2f7d3ba76 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index 8eb13834127..d9ffae50809 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index 4c98c2d86fa..09622a18c16 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index cd225ffa47e..deffd73b4e1 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md index 690be95fd29..14637705c62 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/review-algorithmic-thinking-by-building-a-dice-game/657e0c2c6a9d37705146f34d.md @@ -45,19 +45,24 @@ assert.strictEqual(scoreSpans[5].innerText, ", score = 0"); You should call your `detectFullHouse` function when your `rollDiceBtn` is clicked. ```js -const counts = (arr) => arr.reduce((counts, num) => {counts[num] = ++counts[num] || 1; return counts}, {}); -const isFullHouse = (arr) => arr.includes(3) && arr.includes(2) && arr.length === 2; -// Absurdly high, but will either timeout or bail early when assertion runs. -for (let i = 0; i < 100_000; i++) { - rolls = 0; +// Temporarily modifies Math.random to guarantee full house. +const origMathRandom = Math.random +const myMathRandom = (() => { + let i = 0; + const values = [0, 0, 0, 1 / 6 + 0.000001, 1 / 6 + 0.000001]; + return () => values[i++ % 5]; +})(); + +Math.random = myMathRandom; +try { rollDiceBtn.click(); - if (isFullHouse(diceValuesArr)) { - assert.isFalse(scoreInputs[2].disabled); - assert.strictEqual(scoreInputs[2].value, "25"); - assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); - break; - } +} finally { + Math.random = origMathRandom; } + +assert.isFalse(scoreInputs[2].disabled); +assert.strictEqual(scoreInputs[2].value, "25"); +assert.strictEqual(scoreSpans[2].innerText, ", score = 25"); ``` # --seed-- diff --git a/curriculum/challenges/ukrainian/16-the-odin-project/top-links-and-images/links-and-images-lesson-h.md b/curriculum/challenges/ukrainian/16-the-odin-project/top-links-and-images/links-and-images-lesson-h.md index 8b4ddec910b..6d6de2c3a51 100644 --- a/curriculum/challenges/ukrainian/16-the-odin-project/top-links-and-images/links-and-images-lesson-h.md +++ b/curriculum/challenges/ukrainian/16-the-odin-project/top-links-and-images/links-and-images-lesson-h.md @@ -72,7 +72,7 @@ dashedName: links-and-images-lesson-h # --assignment-- -Прочитайте про чотири основні формати зображень, які можна використовувати у вебмережі (англійською мовою). +Прочитайте про чотири основні формати зображень, які можна використовувати у вебмережі. # --question-- diff --git a/curriculum/challenges/ukrainian/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md b/curriculum/challenges/ukrainian/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md index d2fab889c98..95df7fdf311 100644 --- a/curriculum/challenges/ukrainian/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md +++ b/curriculum/challenges/ukrainian/22-rosetta-code/rosetta-code-challenges/tokenize-a-string-with-escaping.md @@ -72,6 +72,12 @@ assert.deepEqual(tokenize(testStr1, '|', '^'), res1); assert.deepEqual(tokenize(testStr2, '&', '@'), res2); ``` +`tokenize('hello^|world|how^are^you^|', '|', '^')` should return `['hello|world', 'howareyou|']` + +```js +assert.deepEqual(tokenize(testStr3, '|', '^'), res3); +``` + # --seed-- ## --after-user-code-- @@ -80,9 +86,11 @@ assert.deepEqual(tokenize(testStr2, '&', '@'), res2); const testStr1 = 'one^|uno||three^^^^|four^^^|^cuatro|'; const res1 = ['one|uno', '', 'three^^', 'four^|cuatro', '']; -// TODO add more tests const testStr2 = 'a@&bcd&ef&&@@hi'; const res2 = ['a&bcd', 'ef', '', '@hi']; + +const testStr3 = 'hello^|world|how^are^you^|'; +const res3 = ['hello|world', 'howareyou|']; ``` ## --seed-contents--