Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created August 23, 2015 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/4786c31da47176b42f5a to your computer and use it in GitHub Desktop.
Save chuck0523/4786c31da47176b42f5a to your computer and use it in GitHub Desktop.
(function() {
var b, c, obj, x;
x = 13;
if ((10 < x && x < 20)) {
console.log('ok');
}
b = true;
if (b === true) {
console.log('yes!');
}
c = false;
if (b && !c) {
console.log('perfect!');
}
if (5 === 1 || 5 === 3 || 5 === 5) {
console.log('exists');
}
obj = {
score: 52
};
if ('score' in obj) {
console.log('has point');
}
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment