Home | HTML | Data Types | DOM | JavaScript | JS Debugging |
%%js
// put your javascript code here
function compare(a, b)
{
if(a > b){
console.log(a + " is greater than " + b);
}else if(b > a){
console.log(b + " is greater than " + a);
}else{
console.log(a + " " + b + " are the SAMEEEEE");
}
//i love this function
}
compare(1,2);
compare(444,444);
compare(0,-17);
<IPython.core.display.Javascript object>