const year = new Date().getFullYear(); means code example Example: get year from date javascript document.write(new Date().getFullYear());