shortest way to print current year code example Example: shortest way to print current year <script>document.write(new Date().getFullYear())</script>