在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ironhack-labs/lab-javascript-functions-and-arrays开源软件地址:https://github.com/ironhack-labs/lab-javascript-functions-and-arrays开源编程语言:JavaScript 98.0%开源软件介绍:LAB | JS Functions & ArraysIntroductionManipulating arrays in code is a very common operation. Whether you are creating a total for a shopping cart, grabbing only the first names out of a list of people, or moving a piece on a chessboard, you are probably going to be modifying or manipulating an array in some way. Requirements
Submission
git add .
git commit -m "Solved lab"
git push origin master
InstructionsYou will work on the To run the JavaScript code open the To see output of your JavaScript code open the Console in the Developer Tools. While following the instructions for each iteration, make sure to carefully read the instructions to fully understand the task requirements. Do not rush. You should take your time to carefully read every iteration. Note about testsThis LAB, along with some of the labs you will be working on during the bootcamp, is equipped with unit tests to provide automated feedback on your lab progress. After you’ve completed the basic iterations, go to the "Test Your Code" section at the bottom. There you'll be asked to install the testing dependencies and run the tests to check how many tests your code is passing. Iteration #1: Find the maximumImplement the function Iteration #2: Find the longest wordImplement the function You can use the following array to test your solution: const words = ['mystery', 'brother', 'aviator', 'crocodile', 'pearl', 'orchard', 'crackpot']; Iteration #3: Calculate the sumCalculating a sum can be as simple as iterating over an array and adding each of the elements together. Implement the function named You can use the following array to test your solution: const numbers = [6, 12, 1, 18, 13, 16, 2, 1, 8, 10];
Bonus - Iteration #3.1: A generic |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论