Skip to content

add tasks 1-5#150

Open
MagdalenaKoltuniak wants to merge 5 commits intodevmentor-pl:masterfrom
MagdalenaKoltuniak:master
Open

add tasks 1-5#150
MagdalenaKoltuniak wants to merge 5 commits intodevmentor-pl:masterfrom
MagdalenaKoltuniak:master

Conversation

@MagdalenaKoltuniak
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magdo,

Ponownie super! 👍 🥇

Comment thread 01/app.js
console.log(users[0]);
console.log(users[2]);
console.log(users[4]);
console.log('Liczba elementów tablicy:', users.length);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread 02/app.js

// wyświetl wartość ostatniego elementu tablicy
console.log(randomArray[randomArray.length - 1]);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread 03/app.js
}

console.log(oddNumbers);
console.log('długość tablicy:', oddNumbers.length);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread 04/app.js

const newArr = years.map(year => currYear - year);

console.log(newArr);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread 05/app.js

const evenSum = numbers.filter(num => num % 2 === 0).reduce((acc, curr) => acc + curr, 0);

console.log(evenSum);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants