← Back to JavaScript exercises

20. Date and Math Objects

Result appears here
output.textContent=new Date().getFullYear()+" / "+Math.floor(Math.random()*10);