Skip to content

Completed tasks 1-10 - #47

Open
Cervus23 wants to merge 2 commits into
HowProgrammingWorks:masterfrom
Cervus23:master
Open

Completed tasks 1-10#47
Cervus23 wants to merge 2 commits into
HowProgrammingWorks:masterfrom
Cervus23:master

Conversation

@Cervus23

@Cervus23 Cervus23 commented Nov 9, 2019

Copy link
Copy Markdown

No description provided.

@tshemsedinov tshemsedinov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Run linter and tests before commit

Comment thread Exercises/3-hello.js Outdated
'use strict';

const hello = null;
const hello = (name) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
const hello = (name) => {
const hello = name => {

Comment thread Exercises/4-range.js Outdated
const range = null;
const range = (start, end) => {
const array = [];
for(let i = start; i <= end; i += 1) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
for(let i = start; i <= end; i += 1) {
for (let i = start; i <= end; i += 1) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

здесь for (let i = start; i <= end; i ++) не подходит в место i++ ? вроде так же числа добавляет в массив

@lsnull lsnull left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

const range = (start, end) => {
const array = [];
for (let i = start; i <= end; i = i+2){
array.push(i);
}
return array;
};
console.log(range(15, 30));

Comment thread Exercises/3-hello.js
console.log(`Welcome home, ${name}`);
};

module.exports = { hello };

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

зачем здесь module.exports ?

Comment thread Exercises/3-hello.js
const hello = (name) => {
console.log(`Welcome home, ${name}`);
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Вызывать же еще нужно функцию, hello(name) ?

Comment thread Exercises/4-range.js Outdated
const range = null;
const range = (start, end) => {
const array = [];
for(let i = start; i <= end; i += 1) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

здесь for (let i = start; i <= end; i ++) не подходит в место i++ ? вроде так же числа добавляет в массив

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.

3 participants