var ==="something" || var === "somethingElse"
:cookie: 464 | @trip16661 |http://www.freecodecamp.com/trip16661
:cookie: 677 | @sorinr |http://www.freecodecamp.com/sorinr
:star2: 1960 | @moigithub |http://www.freecodecamp.com/moigithub
console.log($("#result").text());
var test = false;
if (test) { console.log("meeee");}
else { console.log("booo"); }
var b=1;
var a = 1;
if (a || b < 0) {
console.log("a or b are less than 0");
} else {
console.log("zzzzzz") ;
}
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(location, error);
} else {
alert("Geolocation not supported");
}
function error() {
alert("Sorry you are in outer space");
}