Skip to content

Conversation

filipgad
Copy link

No description provided.

Copy link
Contributor

@Ami777 Ami777 left a comment

Choose a reason for hiding this comment

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

Elegancie rozwiązanie.

app/zadanie01.js Outdated
fs.readFile('./data/zadanie01/input.json', 'utf8', (err, data) => {
if (err === null){
let arrParsed = JSON.parse(data);
let sum = arrParsed.reduce( (prev, curr) => { return prev + curr } );
Copy link
Contributor

Choose a reason for hiding this comment

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

Mogłbyby to być const-y/

Copy link
Author

Choose a reason for hiding this comment

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

Racja, dzięki! :)

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