function calculateRetirement(year){
const age = new Date().getFullYear()-year;
return[age, 65-age];
}
const[age,retirement]=calculateRetirement(1989);
console.log(`age${age} retirement${retirement}`);
------Controller------------- @RestController @RequestMapping("/items") public class ItemController { private final ItemServic...
No comments:
Post a Comment