Skip to content

Solution#2732

Open
Nikitavyskreb wants to merge 1 commit intomate-academy:masterfrom
Nikitavyskreb:develop
Open

Solution#2732
Nikitavyskreb wants to merge 1 commit intomate-academy:masterfrom
Nikitavyskreb:develop

Conversation

@Nikitavyskreb
Copy link

No description provided.

Copy link

@roman-mirzoian roman-mirzoian left a comment

Choose a reason for hiding this comment

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

Good job, but there is quite a bit of work to be done.
Correct naming is very important.

[].__proto__.join2 = function(separator) {
// write code here
[].__proto__.join2 = function(separator = ',') {
let stringArray = '';

Choose a reason for hiding this comment

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

Why do you use the word array in the title, but it is a string type?
Try to choose a more meaningful naming.

let stringArray = '';

for (let i = 0; i < this.length; i++) {
const arrayElement = this[i];

Choose a reason for hiding this comment

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

Try to choose a more meaningful naming.

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