find leap year
HTML
<div id="year">
</div>
JavaScript
year = window.prompt("Input a Year : ");
/* x = (year % 100 === 0) ? (year % 400 === 0) : (year % 4 === 0); */
/* document.write(x); */
if(((year%4==0) && (year%100 !=0))||(year%400 == 0)){
document.write("leap");
}
else{
document.write("not leap");
}