3 lines
120 B
JavaScript
3 lines
120 B
JavaScript
year = window.prompt("Input a Year : ");
|
|
x = (year % 100 === 0) ? (year % 400 === 0) : (year % 4 === 0);
|
|
alert(x); |