// In this file, I didn't use semicolons ';' at the end of lines.
// But it's not recommended, specially for minification.

var a = 50
var b

// if statement for a single value
if(a >= 50) {
 b = 'Successful!'
} else {
 b = 'Failure!'
}

// shorter way (ternary operator)
b = (a >= 10) ? 'Successful!' : 'Failure!'

console.log(b)

// assaigning a value to a variable with a default value
var c = b
if(!b) c = 1

// another way
var c = 1
if(b) c = b

// shorter way
var c = b || 1

console.log(c)