Answer:
function isLeapYear( aYear ) (year % 100 !== 0 && year % 4 === 0);
return confirmYear ? True : False;
Step-by-step explanation:
The javascript function above requires an argument which is the year when it is passed, it is analyzed, counting the number of days in that year and a boolean value of true or false is dynamically assigned to the variable 'confirmYear'.
The ternary operator would logically select the right value, which is outputted to the user. To test the function, use the console to call the function with an argument.
console.log( isLeapYear( 1999 ) );