An open API service indexing awesome lists of open source software.

https://github.com/andrewjbateman/javascript-array-functions

:clipboard: Practise using map, sort, reduce and filter functions, from https://JavaScript30.com, Wes Bos course.
https://github.com/andrewjbateman/javascript-array-functions

css html javascript javascript30

Last synced: 3 months ago
JSON representation

:clipboard: Practise using map, sort, reduce and filter functions, from https://JavaScript30.com, Wes Bos course.

Awesome Lists containing this project

README

          

# :zap: Javascript Array Functions

* Wes Bos Youtube Tutorial: [JavaScript Array Cardio Practice - Day 1 — #JavaScript30 4/30](https://www.youtube.com/watch?v=HB1ZC7czKRs&list=PLu8EoSxDXHP6CGK4YVJhL_VWetA865GOH&index=4).
* **Note:** to open web links in a new window use: _ctrl+click on link_

![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/javascript-array-functions?style=plastic)
![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/javascript-array-functions?style=plastic)
![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/javascript-array-functions?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/javascript-array-functions?style=plastic)

## :page_facing_up: Table of contents

* [:zap: Javascript Array Functions](#zap-javascript-array-functions)
* [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)
* [:books: General info](#books-general-info)
* [:camera: Screenshots](#camera-screenshots)
* [:signal_strength: Technologies](#signal_strength-technologies)
* [:floppy_disk: Setup](#floppy_disk-setup)
* [:computer: Code Examples](#computer-code-examples)
* [:cool: Features](#cool-features)
* [:clipboard: Status & To-Do List](#clipboard-status--to-do-list)
* [:clap: Inspiration](#clap-inspiration)
* [:file_folder: License](#file_folder-license)
* [:envelope: Contact](#envelope-contact)

## :books: General info

* Tutorial Code using javascript array methods.

## :camera: Screenshots

![Example screenshot](./img/array.png).
![Example screenshot](./img/boulevard.png).

## :signal_strength: Technologies

* Ran in Google Chrome browser with: [Javascript engine V8 for Windows (x64)](https://v8.dev/).

## :floppy_disk: Setup

* Open `index.html` in browser. If any code is changed the browser needs to be refreshed. Some code is commented out as it is meant to be used with a particular web link.

## :computer: Code Examples

* Sort method used to order an array by birth date.

```javascript
// 5. Sort the inventors by years lived
const yearsLived = inventors.sort((a,b) => (a.passed - a.year) > (b.passed - b.year)? 1 : -1);
console.table('inventors sorted by years lived', yearsLived);
```

## :cool: Features

* Includes code to filter DOM elements for key words.

## :clipboard: Status & To-Do List

* Status: Working.
* To-Do: Nothing.

## :clap: Inspiration

* Wes Bos Youtube Tutorial: [JavaScript Array Cardio Practice - Day 1 — #JavaScript30 4/30](https://www.youtube.com/watch?v=HB1ZC7czKRs&list=PLu8EoSxDXHP6CGK4YVJhL_VWetA865GOH&index=4).

## :file_folder: License

* N/A

## :envelope: Contact

* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com