Not sure what this task is trying to get me to do since it seems like printUserCount can work fine without having to return a promise. This is my code currently (after modifying to try to pass the third condition):
functions.js
import { getUserCount } from './db.js';
export const printUserCount = () => {
return getUserCount();
}
solutions.js
import { printUserCount } from './functions.js';
const x = printUserCount();
x.then((result) => console.log(result))
This now passes the last two conditions but fails the first condition, though it seems to work when I run it.