Skip to content

Conversation

@AlioshaRabeshko
Copy link
Member

No description provided.

@AlioshaRabeshkoAlioshaRabeshko changed the title If conditionAdd If else else-if conditionsOct 1, 2017
@AlioshaRabeshkoAlioshaRabeshko changed the title Add If else else-if conditionsAdd If else else-if conditions and ternary operatorOct 2, 2017
Copy link
Member

@tshemsedinovtshemsedinov left a comment

Choose a reason for hiding this comment

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

  • Remove .eslintrc.yml from rull-request because of merge conflict
  • Use eslint before comit
  • After that you need to rebase with master, I'll help

@@ -0,0 +1,45 @@
'use strict';


Copy link
Member

Choose a reason for hiding this comment

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

Use single empty line to separate logical blocks

}

if(condition2)
console.log('5 > 3');
Copy link
Member

Choose a reason for hiding this comment

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

Use{}

Copy link
Member

Choose a reason for hiding this comment

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

or remove \n to have single line condition

}
// Good syntax
condition2 ? console.log('5 > 3') : console.log(false);
// Good syntax
Copy link
Member

Choose a reason for hiding this comment

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

Remove line

Copy link
Member

@tshemsedinovtshemsedinov left a comment

Choose a reason for hiding this comment

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

Remove lines and file .gitignore, everything else is ok

constcondition2=5>3;// Boolean true
constname='Ryu';// String

// Good syntax
Copy link
Member

Choose a reason for hiding this comment

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

Remove line

if(condition1){
console.log('5 < 3');
}
// Good syntax
Copy link
Member

Choose a reason for hiding this comment

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

Remove line

@tshemsedinovtshemsedinov changed the title Add If else else-if conditions and ternary operatorAdd if-else statement and ternary operatorOct 8, 2017
Sign up for freeto 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

@AlioshaRabeshko@tshemsedinov