Giter Club home page Giter Club logo

arrays_methods_implements's Introduction

Implement these array methods

forEach() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/forEach.js

findIndex() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/findIndex.js

find() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/findMethod.js

map () https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/myMap.js

filter() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/myFilter.js

every() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/checkEvery.js

some() https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/checkSome.js

reduce() not solved slice() not solved splice() not solved

Task 1 Concatenate the two arrays const arr1 = [1, 2, 3, 4]; const arr2 = [5, 6, 7, 8, 9]; https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/1.concat.js

Task 2 How to take arguments in sum function? https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/2.argument.js

Task 3 How to pass arguments in sum function? https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/3.destructuring.js

Task 4 Swapping Values using the Destructuring Assignment. let a = 3; let b = 6; console.log(a); //6 console.log(b); //3 https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/4.swapping.js

Task 6 Given an array, return a new array that only includes the numbers.

const arr = [1, 2, 'a', true, {}, undefined, 55, false, 'hi', null, 166, NaN];
// [1, 2, 55, 166];

https://github.com/Gayane25/lesson009_Arrays_Methods/blob/master/6.FilterMethod.js

  • slice() implement .slice()
please click on link to see solution
  • splice() implement .splice()
please click on link to see solution

arrays_methods_implements's People

Contributors

gayane25 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.