Hello, i get these errors:
- logRequestTimestamp should print the result of the function getFormattedDate
- logRequestTimestamp should call the next function after console.log
And this is my middleware.js:
import { getFormattedDate } from './functions.js';
export const logRequestTimestamp = () => {
console.log(getFormattedDate());
next();
}
I can't find the correct way for printing the result of the imported function, what is the correct way? After resolving this i think that the 5th error will disappear too.
Thanks.