What will be the output of the following code?
const date = new Date(); date.setHours(18); console.log(date.getHours());
The previous hour
An error
The current hour
18