Skip to content

Commit 345ba4d

Browse files
committed
remove eslint, update iteartions, replace logo
1 parent 6dcd884 commit 345ba4d

File tree

2 files changed

+20
-35
lines changed

2 files changed

+20
-35
lines changed

.eslintrc.json

-16
This file was deleted.

README.md

+20-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Ironhack logo](https://i.imgur.com/1QgrNNw.png)
1+
![logo_ironhack_blue 7](https://user-images.githubusercontent.com/23629340/40541063-a07a0a8a-601a-11e8-91b5-2f13e4e6b441.png)
22

33
# JS | Functions & Arrays
44

@@ -13,23 +13,21 @@ In this exercise you will apply:
1313

1414
Manipulating arrays in code is a very common operation. Whether you're 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're probably going to be modifying or manipulating an array in some way.
1515

16+
1617
## Requirements
1718

18-
- [Fork this repo](https://guides.github.com/activities/forking/)
19-
- Clone this repo into your `~/code/labs`
20-
- Write your code in the js file provided in the `starter-code`
19+
- Fork this repo
20+
- Clone this repo
2121

2222
## Submission
2323

24-
Upon completion, run the following commands
24+
Upon completion, run the following commands:
2525
```
2626
$ git add .
27-
$ git commit -m 'done'
27+
$ git commit -m "done"
2828
$ git push origin master
2929
```
30-
Navigate to your repo and create a Pull Request -from your master branch to the original repository master branch.
31-
32-
In the Pull request name, add your name and last names separated by a dash '-'
30+
Create Pull Request so your TAs can check up your work.
3331

3432
## Testing Introduction
3533

@@ -85,13 +83,14 @@ When coding with tests, is super important to read and understand the errors we
8583

8684
## Deliverables
8785

88-
All our work will be located in the `functions-and-arrays.js` file, so that will be enough. Anyway, you have to `push` the whole repo to Github.
86+
Write your JavaScript in the provided `src/functions-and-arrays.js` file.
87+
8988

90-
## Find the maximum
89+
## Iteration #1: Find the maximum
9190

9291
Define a function `maxOfTwoNumbers` that takes two numbers as arguments and returns the largest.
9392

94-
## Finding Longest Word
93+
## Iteration #2: Finding Longest Word
9594

9695
Write a function `findLongestWord` that takes an array of words and returns the longest one. If there are 2 with the same length, it should return the first occurrence.
9796

@@ -109,7 +108,7 @@ var words = [
109108
];
110109
```
111110

112-
## Calculating a Sum
111+
## Iteration #3: Calculating a Sum
113112

114113
Calculating a sum is as simple as iterating over an array and adding each of the elements together.
115114

@@ -123,7 +122,7 @@ Create a `sumArray` function that takes an array of numbers as a parameter, and
123122
var numbers = [6, 12, 1, 18, 13, 16, 2, 1, 8, 10];
124123
```
125124

126-
## Calculate the Average
125+
## Iteration #4: Calculate the Average
127126

128127
Calculating an average is an extremely common task. Let's practice it a bit.
129128

@@ -163,7 +162,7 @@ var words = [
163162
];
164163
```
165164

166-
## Unique Arrays
165+
## Iteration #5: Unique Arrays
167166

168167
Take the following array, remove the duplicates, and return a new array. You're more than likely going to want to check out the [`indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf) function.
169168

@@ -188,7 +187,7 @@ var words = [
188187

189188
```
190189

191-
## Finding Elements
190+
## Iteration #6: Finding Elements
192191

193192
Let's create a simple array search.
194193

@@ -208,7 +207,7 @@ var words = [
208207
];
209208
```
210209

211-
## Counting Repetion
210+
## Iteration #7: Counting Repetition
212211

213212
Write a function `howManyTimes` that will take in an array of words as one argument, and a word to search for as the other. The function will return the number of times that word appears in the array.
214213

@@ -230,7 +229,7 @@ var words = [
230229
];
231230
```
232231

233-
## Bonus Quest
232+
## Iteration #8: Bonus
234233

235234
In the 20×20 grid below; What is the greatest product of four adjacent numbers in the same direction (up, down, left, right)?
236235

@@ -259,4 +258,6 @@ var matrix = [
259258
[20,73,35,29,78,31,90,01,74,31,49,71,48,86,81,16,23,57,05,54],
260259
[01,70,54,71,83,51,54,69,16,92,33,48,61,43,52,01,89,19,67,48],
261260
];
262-
```
261+
```
262+
263+
**Happy coding!** :heart:

0 commit comments

Comments
 (0)