Task: Write a script in JavaScript for printing the current date and time.
output: var newDate = new Date();
var currentDateTime = newDate.toLocaleString();
console.log(currentDateTime);