Sobes.tech
Junior — Senior

Research on the behavior of main array and object methods in JavaScript

livecode

Task condition

Replace the question marks with appropriate arguments or functions and specify what each call will return:

[1, 2, 3].map(?)          // ?
[1, 2, 3].filter(?)       // ?
[1, 2, 3].some(?)         // ?
[1, 2, 3].every(?)        // ?
[1, 2, 3].includes(?)     // ?

[1, 2, 3].unshift(?)      // ?
[1, 2, 3].slice(?)        // ?
[1, 2, 3].splice(?)       // ?

Object.create(?)          // ?
Object.assign(?)          // ?
Object.prototype.hasOwnProperty(?)  // ?