Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Write a function in JavaScript to print the current date.

### Response:
function printCurrentDate() {
    const date = new Date();
    const day = date.getDate();
    const month = date.getMonth();
    const year = date.getFullYear();
    console.log(`The current date is ${day}/${month+1}/${year}.`);
}